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
@nicolasstucki The printing of the following program shows that the '{4} in the annotation is not reified during compilation:
'{4}
import scala.quoted._ class annot[T: Type](x: Expr[T]) extends scala.annotation.Annotation class Test()(implicit qtx: QuoteContext) { @annot('{4}) def foo(str: String) = '{4} }
I'm not sure if it's a bug or not, as annotations don't have runtime semantics.
Originally posted by @liufengyun in #7053 (comment)
The text was updated successfully, but these errors were encountered:
We should disallow them
Sorry, something went wrong.
And this one #7053 (comment)
import scala.quoted._ class annot[T: Type](x: T) extends scala.annotation.Annotation class Test()(implicit qtx: QuoteContext) { @annot(4)('[Int]) def foo(str: String) = () }
Fix scala#7121: Disallow quotes in annotations
23eee17
2ed363a
Merge pull request #7368 from dotty-staging/fix-#7121
441c2ee
Fix #7121: Disallow quotes in annotations
No branches or pull requests
@nicolasstucki The printing of the following program shows that the
'{4}
in the annotation is not reified during compilation:I'm not sure if it's a bug or not, as annotations don't have runtime semantics.
Originally posted by @liufengyun in #7053 (comment)
The text was updated successfully, but these errors were encountered: