File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -748,10 +748,10 @@ class Namer { typer: Typer =>
748
748
749
749
protected def addAnnotations (sym : Symbol ): Unit = original match {
750
750
case original : untpd.MemberDef =>
751
- lazy val annotCtx = annotContext(original, sym)
751
+ def annotCtx ( implicit ctx : Context ) = annotContext(original, sym)
752
752
for (annotTree <- untpd.modsDeco(original).mods.annotations) {
753
753
val cls = typedAheadAnnotationClass(annotTree)(annotCtx)
754
- val ann = Annotation .deferred(cls, implicit ctx => typedAnnotation(annotTree))
754
+ val ann = Annotation .deferred(cls, implicit ctx => typedAnnotation(annotTree)(annotCtx) )
755
755
sym.addAnnotation(ann)
756
756
if (cls == defn.ForceInlineAnnot && sym.is(Method , butNot = Accessor ))
757
757
sym.setFlag(Inline )
You can’t perform that action at this time.
0 commit comments