diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-11-14 23:48:21 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:08 +0100 |
commit | 49f2ffd37ab79d4d3b2214534b03dc05eb641da3 (patch) | |
tree | 192b350986f337f7367a7b92e47b8b4c9bad3f9b | |
parent | 717264b8940a337b123ee42e09c9b02a2a5c3b11 (diff) | |
download | dotty-49f2ffd37ab79d4d3b2214534b03dc05eb641da3.tar.gz dotty-49f2ffd37ab79d4d3b2214534b03dc05eb641da3.tar.bz2 dotty-49f2ffd37ab79d4d3b2214534b03dc05eb641da3.zip |
TreeUnpickler: Add missing case for ENUMconst
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 2 |
1 files changed, 2 insertions, 0 deletions
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()) } |