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
Consider the following definition of a parametric type named MyType:
MyType
julia> VERSION v"1.6.1-pre.1" julia> struct MyType{R<:Real} x::R end
Now, we get
julia> (MyType{R} where {R<:Real}) <: MyType true
but
julia> (MyType{R} where {R}) <: MyType false
Because the parameter R of MyType must be a subtype of Real by definition, it will be nice if the last code returns true.
R
Real
true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider the following definition of a parametric type named
MyType
:Now, we get
but
Because the parameter
R
ofMyType
must be a subtype ofReal
by definition, it will be nice if the last code returnstrue
.The text was updated successfully, but these errors were encountered: