File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1071,8 +1071,9 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
10711071 def completeAnnotations (mdef : untpd.MemberDef , sym : Symbol )(implicit ctx : Context ): Unit = {
10721072 // necessary to force annotation trees to be computed.
10731073 sym.annotations.foreach(_.tree)
1074+ val annotCtx = ctx.outersIterator.dropWhile(_.owner == sym).next
10741075 // necessary in order to mark the typed ahead annotations as definitely typed:
1075- untpd.modsDeco(mdef).mods.annotations.foreach(typedAnnotation)
1076+ untpd.modsDeco(mdef).mods.annotations.foreach(typedAnnotation(_)(annotCtx) )
10761077 }
10771078
10781079 def typedAnnotation (annot : untpd.Tree )(implicit ctx : Context ): Tree = track(" typedAnnotation" ) {
File renamed without changes.
You can’t perform that action at this time.
0 commit comments