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
We get trouble when we refine methods with raw types:
public interface Raw<T> { Raw method(Raw x); }
shared class Foo() satisfies Raw<Object>{ shared actual Raw<Object> method(Raw<Object> x){ return x; } }
Because we can't refine raw stuff with non-raw stuff.
The text was updated successfully, but these errors were encountered:
You could always just disallow this by pretending method is final in the model loader....
method
final
Sorry, something went wrong.
Well, I think the problem is that people will want to do that ;)
Moved to 1.0
I don't think we can do that without something special such as being able to add compiler annotations in the middle of a type expression:
shared class Foo() satisfies Raw<Object>{ shared actual @raw Raw method(@raw Raw x){ return x; } }
I guess we can do this ATM for toplevel types, but not in the case of Foo<@raw Bar>.
Foo<@raw Bar>
I'm moving this to 1.2
No branches or pull requests
We get trouble when we refine methods with raw types:
Because we can't refine raw stuff with non-raw stuff.
The text was updated successfully, but these errors were encountered: