You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> type Foo{T}; x::T; end
julia> typealias Baz{T} Foo{T}
Foo{T}
julia> typeof(Baz)
TypeConstructor
julia> typeof(Foo)
DataType
julia> Baz == Foo
true
julia> methods(Baz)
ERROR: no method methods(Type{Foo{T}})
julia> methods(Foo)
# 1 method for generic function "Foo":
Foo{T}(x::T)
julia> typealias Bar Foo{Int}
Foo{Int64} (constructor with 2 methods)
julia> typeof(Bar)
DataType
julia> methods(Bar)
# 2 methods for generic function "Foo":
Foo(x::Int64)
Foo(x)
Why does the type of a parametric type alias singleton not match the type of the parametric type singleton it represents, yet == says they're the same?
Why do you lose access to the parametric constructors when referencing a parametric type through a parametric type alias? You don't lose constructors when the type alias represents a concrete type.
yet you can't seem to test whether a type is a type constructor
The text was updated successfully, but these errors were encountered: