Skip to content

Commit 3b83061

Browse files
committed
TreeUnpickler: Add missing case for ENUMconst
1 parent 1b09bff commit 3b83061

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
347347
ConstantType(Constant(null))
348348
case CLASSconst =>
349349
ConstantType(Constant(readType()))
350+
case ENUMconst =>
351+
ConstantType(Constant(readTermRef().termSymbol))
350352
case BYNAMEtype =>
351353
ExprType(readType())
352354
}

0 commit comments

Comments
 (0)