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

Parametric method using parametric type of Complex #88

Closed
xianrenb opened this issue Feb 24, 2015 · 0 comments · Fixed by #179
Closed

Parametric method using parametric type of Complex #88

xianrenb opened this issue Feb 24, 2015 · 0 comments · Fixed by #179

Comments

@xianrenb
Copy link

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)

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

Successfully merging a pull request may close this issue.

1 participant