diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2016-11-21 19:59:17 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:08 +0100 |
commit | e50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb (patch) | |
tree | e97fd9260fca8897c333e5b10f341eec7b2f4360 /compiler/src/dotty/tools | |
parent | fee0b0e77d98191a26b01489bb9446e659569d1b (diff) | |
download | dotty-e50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb.tar.gz dotty-e50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb.tar.bz2 dotty-e50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb.zip |
Properly unpickle This trees without qualifier
Otherwise, they may end up with a qualifier, this manifested itself as a
pickling difference in `tasty_tools`.
Diffstat (limited to 'compiler/src/dotty/tools')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index 6fcc2fcaa..925e39ce9 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -881,7 +881,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle readType() match { case path: TypeRef => TypeTree(path) case path: TermRef => ref(path) - case path: ThisType => This(path.cls) + case path: ThisType => untpd.This(untpd.EmptyTypeIdent).withType(path) case path: ConstantType => Literal(path.value) } } |