Skip to content

Commit dad18a2

Browse files
committed
Don't try to unpickle RHS of deferred inline methods
1 parent 9b0f8b7 commit dad18a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ class TreeUnpickler(reader: TastyReader,
774774
def readRhs(implicit ctx: Context): LazyTree =
775775
if (nothingButMods(end))
776776
EmptyTree
777-
else if (sym.isInlineMethod)
777+
else if sym.isInlineMethod && !sym.is(Deferred) then
778778
// The body of an inline method is stored in an annotation, so no need to unpickle it again
779779
new Trees.Lazy[Tree] {
780780
def complete(implicit ctx: Context) = typer.Inliner.bodyToInline(sym)

0 commit comments

Comments
 (0)