From e50afe94eec1824fb4e9dd9ddbbbfbc53c8d72eb Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 21 Nov 2016 19:59:17 +0100 Subject: Properly unpickle This trees without qualifier Otherwise, they may end up with a qualifier, this manifested itself as a pickling difference in `tasty_tools`. --- compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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) } } -- cgit v1.2.3