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 @@ -1072,8 +1072,9 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1072
1072
def completeAnnotations (mdef : untpd.MemberDef , sym : Symbol )(implicit ctx : Context ): Unit = {
1073
1073
// necessary to force annotation trees to be computed.
1074
1074
sym.annotations.foreach(_.tree)
1075
+ val annotCtx = ctx.outersIterator.dropWhile(_.owner == sym).next
1075
1076
// necessary in order to mark the typed ahead annotations as definitely typed:
1076
- untpd.modsDeco(mdef).mods.annotations.foreach(typedAnnotation)
1077
+ untpd.modsDeco(mdef).mods.annotations.foreach(typedAnnotation(_)(annotCtx) )
1077
1078
}
1078
1079
1079
1080
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