File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ class TreeUnpickler(reader: TastyReader,
583
583
sym.completer.withDecls(newScope)
584
584
forkAt(templateStart).indexTemplateParams()(localContext(sym))
585
585
}
586
- else if (sym.isInlineMethod)
586
+ else if (sym.isInlineMethod | sym.isDependentMethod )
587
587
sym.addAnnotation(LazyBodyAnnotation { ctx0 =>
588
588
implicit val ctx : Context = localContext(sym)(ctx0).addMode(Mode .ReadPositions )
589
589
// avoids space leaks by not capturing the current context
@@ -773,7 +773,7 @@ class TreeUnpickler(reader: TastyReader,
773
773
def readRhs (implicit ctx : Context ) =
774
774
if (nothingButMods(end))
775
775
EmptyTree
776
- else if (sym.isInlineMethod)
776
+ else if (sym.isInlineMethod | sym.isDependentMethod )
777
777
// The body of an inline method is stored in an annotation, so no need to unpickle it again
778
778
new Trees .Lazy [Tree ] {
779
779
def complete (implicit ctx : Context ) = typer.Inliner .bodyToInline(sym)
You can’t perform that action at this time.
0 commit comments