Closed mauro3 closed 9 years ago
f(x::Int,y::Int) = 1 f(x::Int,y::Float64) = 1 @traitdef TT{X} begin f(X, Int) f(X, Float64) end @assert length(TT{Int}().methods)==2 # length is 1!
does not work as methods stores only on signature per function.
methods
Closed with #10
does not work as
methods
stores only on signature per function.