Skip to content

Emit an error when trying to call a Scala 2 macro from Dotty #6150

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

Closed
smarter opened this issue Mar 23, 2019 · 0 comments
Closed

Emit an error when trying to call a Scala 2 macro from Dotty #6150

smarter opened this issue Mar 23, 2019 · 0 comments
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc compat:scala2 itype:bug

Comments

@smarter
Copy link
Member

smarter commented Mar 23, 2019

Right now, calling a Scala 2 macro present on the classpath will compile fine, but crash at runtime with a NoSuchMethodError since the method is not present in bytecode. We should emit an error at compile-time instead.

@smarter smarter added itype:bug compat:scala2 area:reporting Error reporting including formatting, implicit suggestions, etc labels Mar 23, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Mar 27, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Mar 27, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Mar 27, 2019
nicolasstucki added a commit that referenced this issue Apr 4, 2019
Fix #6150: Emit error when calling Scala 2 macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:reporting Error reporting including formatting, implicit suggestions, etc compat:scala2 itype:bug
Projects
None yet
Development

No branches or pull requests

1 participant