Skip to content

Commit a6394e9

Browse files
committed
Tasty: Fix unpickling of a TEMPLATE with a SHARED parent
1 parent 1ab6027 commit a6394e9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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
@@ -760,7 +760,7 @@ class TreeUnpickler(reader: TastyReader,
760760
val tparams = readIndexedParams[TypeDef](TYPEPARAM)
761761
val vparams = readIndexedParams[ValDef](PARAM)
762762
val parents = collectWhile(nextByte != SELFDEF && nextByte != DEFDEF) {
763-
nextByte match {
763+
nextUnsharedTag match {
764764
case APPLY | TYPEAPPLY => readTerm()(parentCtx)
765765
case _ => readTpt()(parentCtx)
766766
}

compiler/test/dotty/tools/dotc/FromTastyTests.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class FromTastyTests extends ParallelTesting {
3333
"i2345.scala",
3434
"i2888.scala",
3535
"i2944.scala",
36-
"i2980.scala",
3736
"i3000.scala",
3837
"i536.scala",
3938
"i974.scala",

0 commit comments

Comments
 (0)