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
Typing C in the following code fails with You can only declare from/to with compatible types. While B is fine.
C
You can only declare from/to with compatible types
B
abstract A(Array<Float>) to Array<Float>{} abstract B(Array<A>) to Array<Array<Float>> {} abstract C(Array<B>) to Array<Array<Array<Float>>> {}
The text was updated successfully, but these errors were encountered:
I'm not sure if that should work or not.
Sorry, something went wrong.
I just ran into the same problem on 4.0 preview 4. Will this be fixed, or are there any workarounds?
I think you can work around it with @:from/to and unsafe cast
I managed to, by removing an implicit to cast in the abstract class definition!
to
No branches or pull requests
Typing
C
in the following code fails withYou can only declare from/to with compatible types
.While
B
is fine.The text was updated successfully, but these errors were encountered: