Skip to content

Commit 18fab42

Browse files
authored
Merge pull request scala#9546 from lrytz/t12336-backport
Don't pickle `@nowarn` annotations...
2 parents f4d1087 + a7be706 commit 18fab42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/internal/AnnotationInfos.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ trait AnnotationInfos extends api.Annotations { self: SymbolTable =>
331331
/** Check whether the type or any of the arguments are erroneous */
332332
def isErroneous = atp.isErroneous || args.exists(_.isErroneous)
333333

334-
def isStatic = symbol isNonBottomSubClass StaticAnnotationClass
334+
def isStatic = symbol.isNonBottomSubClass(StaticAnnotationClass) && symbol != NowarnClass
335335

336336
/** Check whether any of the arguments mention a symbol */
337337
def refsSymbol(sym: Symbol) = hasArgWhich(_.symbol == sym)

0 commit comments

Comments
 (0)