Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new where syntax #235

Open
adamslc opened this issue Jun 29, 2017 · 1 comment
Open

Support new where syntax #235

adamslc opened this issue Jun 29, 2017 · 1 comment

Comments

@adamslc
Copy link

adamslc commented Jun 29, 2017

Lint does not seem to support the new where syntax. For example, this

struct Struct{T <: Real}
    a::Vector{T}
    b::Vector{T}

    function Struct(a::Vector{T}, b::Vector{T}) where {T <: Real}
        @assert length(a) == length(b)

        new{T}(a, b)
    end
end

produces the following lint output:

test.jl:2 E131 Struct(a::Vector{T}, b::Vector{T}): Lint does not understand argument #1
test.jl:2 E131 T <: Real: Lint does not understand argument #2
test.jl:6 E321 a: use of undeclared symbol
test.jl:6 E321 b: use of undeclared symbol
test.jl:8 E321 a: use of undeclared symbol
test.jl:8 E321 b: use of undeclared symbol

@TotalVerb
Copy link
Collaborator

Thanks for filing this issue! I intend to address this problem in the near future. There is an open #231 work in progress that lays the foundation for supporting this syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants