Skip to content

Conversation

@dwijnand
Copy link
Member

@dwijnand dwijnand commented Mar 10, 2025

Implements the "User-defined annotation subclasses" part of #22414, and used it to handle @nowarn subclasses. The "Default expression ASTs" part doesn't have a real world use case for it, so I skipped it for now. And "Runtime uses of annotation classes" part was recently fixed in #22553.

@dwijnand dwijnand marked this pull request as ready for review March 11, 2025 10:03
@dwijnand dwijnand requested a review from lrytz March 11, 2025 10:04
@dwijnand
Copy link
Member Author

dwijnand commented Mar 11, 2025

Need to wait for a release and update of scala-library that includes scala/scala#10976, i.e. scala 2.13.17. Then I can delete the library classes I copied over, and rely on the ones in the stdlib. And I can add another copy of the separate compilation, where the annotation is compiled with scala-compiler 2.13.17.

@som-snytt
Copy link
Contributor

Capability unlocked! I can take a look if helpful. I see I added the conflicting warn/nowarn.scala.

@lrytz
Copy link
Member

lrytz commented Oct 30, 2025

This is somewhere on my list, but I won't get to it very soon... If you have a go, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants