aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-11-21 19:59:17 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-11-22 01:35:08 +0100
commite50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb (patch)
treee97fd9260fca8897c333e5b10f341eec7b2f4360 /compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
parentfee0b0e77d98191a26b01489bb9446e659569d1b (diff)
downloaddotty-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/dotc/core/tasty/TreeUnpickler.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala2
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)
}
}