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
1071
1071
def completeAnnotations (mdef : untpd.MemberDef , sym : Symbol )(implicit ctx : Context ): Unit = {
1072
1072
// necessary to force annotation trees to be computed.
1073
1073
sym.annotations.foreach(_.tree)
1074
+ val annotCtx = ctx.outersIterator.dropWhile(_.owner == sym).next
1074
1075
// 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) )
1076
1077
}
1077
1078
1078
1079
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