You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there is an issue for parametric method using parametric type of Complex.
$ cat temp.jl
F = Float64
Complex{F}
type MyType{T}
a::T
end
function f{A}(z::Complex{A})
end
function g{B}(z::MyType{B})
end
julia> using Lint
julia> lintfile("temp.jl")
temp.jl:8 [f ] ERROR Lint fails to parse Complex{A}
TypeError(:Complex,"T",T<:Real,Any)
temp.jl:8 [f ] INFO Argument declared but not used: z
temp.jl:11 [g ] INFO Argument declared but not used: z
julia> include("temp.jl")
g (generic function with 1 method)
The text was updated successfully, but these errors were encountered:
I believe there is an issue for parametric method using parametric type of Complex.
$ cat temp.jl
F = Float64
Complex{F}
type MyType{T}
a::T
end
function f{A}(z::Complex{A})
end
function g{B}(z::MyType{B})
end
julia> using Lint
julia> lintfile("temp.jl")
temp.jl:8 [f ] ERROR Lint fails to parse Complex{A}
TypeError(:Complex,"T",T<:Real,Any)
temp.jl:8 [f ] INFO Argument declared but not used: z
temp.jl:11 [g ] INFO Argument declared but not used: z
julia> include("temp.jl")
g (generic function with 1 method)
The text was updated successfully, but these errors were encountered: