diff options
author | Martin Odersky <odersky@gmail.com> | 2017-03-24 19:15:51 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-11 09:33:10 +0200 |
commit | 0755ec28d22798c51aedf45e4dcdf1ed299c2aa5 (patch) | |
tree | 06b8b8f94005a9380d76c42880239fe282be268b /compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala | |
parent | 0ad1cd816bc1537ad332addabb0ff6c293e3e0a0 (diff) | |
download | dotty-0755ec28d22798c51aedf45e4dcdf1ed299c2aa5.tar.gz dotty-0755ec28d22798c51aedf45e4dcdf1ed299c2aa5.tar.bz2 dotty-0755ec28d22798c51aedf45e4dcdf1ed299c2aa5.zip |
Add Variant NameInfo
Plus further bug fixes.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala index c8c1878bc..e6b43e6b4 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyUnpickler.scala @@ -62,6 +62,8 @@ class TastyUnpickler(reader: TastyReader) { DefaultGetter(readNameRef(), readNat()) case SHADOWED => Shadowed(readNameRef()) + case VARIANT => + Variant(readNameRef(), readNat() - 1) } assert(currentAddr == end, s"bad name $result $start $currentAddr $end") result |