-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
types and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch
Description
I think this should throw an error (or does it make sense?):
julia> T{TT} = Int
Int64
instead it semi-works:
julia> T
Int64
thus the parameter TT is, I think, just silently ignored.
Here what it gets lowered to:
julia> Meta.lower(Main, :(T{TT} = Int))
:($(Expr(:thunk, CodeInfo(:(begin
const T
TT = (Core.TypeVar)(:TT)
SSAValue(0) = (Core.UnionAll)(TT, Int)
T = SSAValue(0)
return SSAValue(0)
end)))))
Metadata
Metadata
Assignees
Labels
types and dispatchTypes, subtyping and method dispatchTypes, subtyping and method dispatch