Skip to content
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

Splain doesn't respect -Ymacro-annotations compiler flag #30

Closed
4e6 opened this issue Feb 13, 2020 · 0 comments · Fixed by #31
Closed

Splain doesn't respect -Ymacro-annotations compiler flag #30

4e6 opened this issue Feb 13, 2020 · 0 comments · Fixed by #31

Comments

@4e6
Copy link
Contributor

4e6 commented Feb 13, 2020

When trying to build the project that uses macro annotations, compilation fails with:

[error] splain-macro-annotations/Test.scala:7:23: macro annotation could not be expanded (you cannot use a macro annotation in the same compilation run that defines it)
[error]   @newtype case class Foo(ix: Int)
[error]                       ^
[error] one error found

The error message is the same as if you forget to add -Ymacro-annotations compiler flag.

Example project, that reproduces the issue: 4e6/splain-macro-annotations

scalaVersion: 2.13.1
splainVersion: 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant