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
This was unexpected:
using Base.Test const FOO=1 type Foo{K}; end foo() = Foo{FOO}() @inferred foo()
gives
ERROR: return type Foo{1} does not match inferred return type Foo{K} in error at error.jl:19
Is it reasonable to expect Julia to be able to recognize constants in type parameters here?
cc: @simonster
The text was updated successfully, but these errors were encountered:
Maybe a dup of #5560? Although in this case, we don't even need to run type inference before performing the substitution.
Sorry, something went wrong.
Yah, mostly a dup.
No branches or pull requests
This was unexpected:
gives
Is it reasonable to expect Julia to be able to recognize constants in type parameters here?
cc: @simonster
The text was updated successfully, but these errors were encountered: