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
3.0.2
import scala.annotation.meta.{field, getter} case class TestCaseClass( @(Deprecated @field) val conField: String ): @Deprecated val memberField: String = null @main def test() = val clazz = classOf[TestCaseClass] val conFieldAnn = clazz.getDeclaredField("conField").getDeclaredAnnotations.toList println(conFieldAnn) val memberFieldAnn = clazz.getDeclaredField("memberField").getDeclaredAnnotations.toList println(memberFieldAnn)
List() List(@java.lang.Deprecated(forRemoval=false, since=""))
Both println should output same annotation list.
println
List(@java.lang.Deprecated(forRemoval=false, since="")) List(@java.lang.Deprecated(forRemoval=false, since=""))
The text was updated successfully, but these errors were encountered:
Duplicate of #12492
Sorry, something went wrong.
No branches or pull requests
Compiler version
3.0.2
Minimized code
Output
Expectation
Both
println
should output same annotation list.The text was updated successfully, but these errors were encountered: