From 49f2ffd37ab79d4d3b2214534b03dc05eb641da3 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 14 Nov 2016 23:48:21 +0100 Subject: TreeUnpickler: Add missing case for ENUMconst --- compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala') diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index eba9ab533..79408ddde 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -347,6 +347,8 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle ConstantType(Constant(null)) case CLASSconst => ConstantType(Constant(readType())) + case ENUMconst => + ConstantType(Constant(readTermRef().termSymbol)) case BYNAMEtype => ExprType(readType()) } -- cgit v1.2.3