We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f5c6a commit 5efd007Copy full SHA for 5efd007
src/dotty/tools/dotc/core/pickling/TreePickler.scala
@@ -187,8 +187,14 @@ class TreePickler(pickler: TastyPickler) {
187
pickleName(tpe.name); pickleType(tpe.prefix)
188
}
189
case tpe: ThisType =>
190
- writeByte(THIS)
191
- pickleType(tpe.tref)
+ if (tpe.cls.is(Flags.Package) && !tpe.cls.isEffectiveRoot) {
+ writeByte(TERMREFpkg)
192
+ pickleName(qualifiedName(tpe.cls))
193
+ }
194
+ else {
195
+ writeByte(THIS)
196
+ pickleType(tpe.tref)
197
198
case tpe: SuperType =>
199
writeByte(SUPERtype)
200
withLength { pickleType(tpe.thistpe); pickleType(tpe.supertpe)}
0 commit comments