We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4d1087 + a7be706 commit 18fab42Copy full SHA for 18fab42
src/reflect/scala/reflect/internal/AnnotationInfos.scala
@@ -331,7 +331,7 @@ trait AnnotationInfos extends api.Annotations { self: SymbolTable =>
331
/** Check whether the type or any of the arguments are erroneous */
332
def isErroneous = atp.isErroneous || args.exists(_.isErroneous)
333
334
- def isStatic = symbol isNonBottomSubClass StaticAnnotationClass
+ def isStatic = symbol.isNonBottomSubClass(StaticAnnotationClass) && symbol != NowarnClass
335
336
/** Check whether any of the arguments mention a symbol */
337
def refsSymbol(sym: Symbol) = hasArgWhich(_.symbol == sym)
0 commit comments