File tree 1 file changed +5
-5
lines changed
compiler/src/dotty/tools/dotc/core/tasty
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -185,16 +185,16 @@ class TreePickler(pickler: TastyPickler) {
185
185
writeByte(if (tpe.isType) TYPEREFdirect else TERMREFdirect )
186
186
pickleSymRef(sym)
187
187
}
188
- else if (isLocallyDefined(sym)) {
189
- writeByte(if (tpe.isType) TYPEREFsymbol else TERMREFsymbol )
190
- pickleSymRef(sym); pickleType(tpe.prefix)
191
- }
192
188
else tpe.designator match {
193
189
case name : Name =>
194
190
writeByte(if (tpe.isType) TYPEREF else TERMREF )
195
191
pickleName(name); pickleType(tpe.prefix)
196
192
case sym : Symbol =>
197
- pickleExternalRef(sym)
193
+ if (isLocallyDefined(sym)) {
194
+ writeByte(if (tpe.isType) TYPEREFsymbol else TERMREFsymbol )
195
+ pickleSymRef(sym); pickleType(tpe.prefix)
196
+ }
197
+ else pickleExternalRef(sym)
198
198
}
199
199
case tpe : ThisType =>
200
200
if (tpe.cls.is(Flags .Package ) && ! tpe.cls.isEffectiveRoot) {
You can’t perform that action at this time.
0 commit comments