@@ -22,7 +22,6 @@ import core.quoted.PickledQuotes
2222import scala .quoted
2323import scala .quoted .Types .TreeType
2424import scala .quoted .Exprs .TastyTreeExpr
25- import typer .Inliner .typedInline
2625
2726import scala .annotation .internal .sharable
2827
@@ -555,7 +554,7 @@ class TreeUnpickler(reader: TastyReader,
555554 sym.completer.withDecls(newScope)
556555 forkAt(templateStart).indexTemplateParams()(localContext(sym))
557556 }
558- else if (typedInline && sym.isInlineMethod)
557+ else if (sym.isInlineMethod)
559558 sym.addAnnotation(LazyBodyAnnotation { ctx0 =>
560559 implicit val ctx : Context = localContext(sym)(ctx0).addMode(Mode .ReadPositions )
561560 // avoids space leaks by not capturing the current context
@@ -643,14 +642,9 @@ class TreeUnpickler(reader: TastyReader,
643642 val lazyAnnotTree = readLaterWithOwner(end, rdr => ctx => rdr.readTerm()(ctx))
644643
645644 owner =>
646- if (tp.isRef(defn.BodyAnnot )) {
647- assert(! typedInline)
648- LazyBodyAnnotation (implicit ctx => lazyAnnotTree(owner).complete)
649- }
650- else
651- Annotation .deferredSymAndTree(
652- implicit ctx => tp.typeSymbol,
653- implicit ctx => lazyAnnotTree(owner).complete)
645+ Annotation .deferredSymAndTree(
646+ implicit ctx => tp.typeSymbol,
647+ implicit ctx => lazyAnnotTree(owner).complete)
654648 }
655649
656650 /** Create symbols for the definitions in the statement sequence between
@@ -749,7 +743,7 @@ class TreeUnpickler(reader: TastyReader,
749743 def readRhs (implicit ctx : Context ) =
750744 if (nothingButMods(end))
751745 EmptyTree
752- else if (sym.isInlineMethod && typedInline )
746+ else if (sym.isInlineMethod)
753747 // The body of an inline method is stored in an annotation, so no need to unpickle it again
754748 new Trees .Lazy [Tree ] {
755749 def complete (implicit ctx : Context ) = typer.Inliner .bodyToInline(sym)
0 commit comments