We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These should both error and error better:
julia> @traitfn f(x::X, y:Y) where {X, Y; T1{X}, T2{X}} = 1 ERROR: LoadError: Cannot parse argument: y:Y Stacktrace: [1] error(::String) at ./error.jl:33 [2] strip_kw at /home/mauro/julia/dot-julia-dev/SimpleTraits/src/SimpleTraits.jl:429 [inlined] [3] strip_kw(::Array{Any,1}) at /home/mauro/julia/dot-julia-dev/SimpleTraits/src/SimpleTraits.jl:420 [4] traitfn(::Expr, ::Module) at /home/mauro/julia/dot-julia-dev/SimpleTraits/src/SimpleTraits.jl:331 [5] @traitfn(::LineNumberNode, ::Module, ::Any) at /home/mauro/julia/dot-julia-dev/SimpleTraits/src/SimpleTraits.jl:388 in expression starting at REPL[15]:1 julia> @traitfn f(x::X, y::Y) where {X, Y; T1{X}, T2{X}} = 1 f (generic function with 2 methods)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
These should both error and error better:
The text was updated successfully, but these errors were encountered: