New issue
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
Macros are not compatible with structural types #7340
Labels
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7340?orig=1 |
@xeno-by said: |
@xeno-by said: |
closing for presumed staleness. comment/reopen if you can verify this is still relevant to current Scala |
still on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will type-check but it will fail in runtime, as Macros dont generate runtime bytecode.
running such app raises
java.lang.NoSuchMethodException: B.hello()
It also interferes a lot with how some java libraries work: for example Amazon DynamoDB SDK uses reflection to get all getters and setters, if some of them are defined by macros, they will be unreachable in runtime using reflection.
The text was updated successfully, but these errors were encountered: