Skip to content

Commit e50afe9

Browse files
committed
Properly unpickle This trees without qualifier
Otherwise, they may end up with a qualifier, this manifested itself as a pickling difference in `tasty_tools`.
1 parent fee0b0e commit e50afe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle
881881
readType() match {
882882
case path: TypeRef => TypeTree(path)
883883
case path: TermRef => ref(path)
884-
case path: ThisType => This(path.cls)
884+
case path: ThisType => untpd.This(untpd.EmptyTypeIdent).withType(path)
885885
case path: ConstantType => Literal(path.value)
886886
}
887887
}

0 commit comments

Comments
 (0)