Open
Description
PR #5 fixed most of the method overwritten
warnings, but not all:
julia> @traitfn g{X; Tr{X}}(x::X) = 1
g (generic function with 2 methods)
julia> @traitfn g{X; !Tr{X}}(::X) = 2
WARNING: Method definition g(#X<:Any) in module Main at /home/mauro/.julia/v0.5/SimpleTraits/src/SimpleTraits.jl:160 overwritten at /home/mauro/.julia/v0.5/SimpleTraits/src/SimpleTraits.jl:160.
g (generic function with 3 methods)
julia> g(5)
1
julia> g(5.0)
2
If this becomes fixable at some stage without too much effort/code, then fix.
Metadata
Metadata
Assignees
Labels
No labels