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
julia> immutable MyType{SZ} data::Int end julia> mt = MyType{(3,5)}(1) MyType{(3,5)}(1) julia> doubleall(mt::MyType{(3,5)}) = MyType{(6,10)}(2*mt.data) doubleall (generic function with 1 method) julia> typeof(doubleall(mt)) MyType{(6,10)} (constructor with 1 method) julia> Base.return_types(doubleall, (typeof(mt),)) 1-element Array{Any,1}: MyType{SZ}
The SZ is the surprising part; why isn't it MyType{(6,10)}?
SZ
MyType{(6,10)}
This is relevant for the more interesting example in #7568, where
julia> Base.return_types(*, (typeof(AfI), typeof(BfI))) 1-element Array{Any,1}: FixedArrayI{Float64,2,SZ,6}
The text was updated successfully, but these errors were encountered:
dup of #7060
Sorry, something went wrong.
No branches or pull requests
The
SZ
is the surprising part; why isn't itMyType{(6,10)}
?This is relevant for the more interesting example in #7568, where
The text was updated successfully, but these errors were encountered: