File tree 1 file changed +4
-2
lines changed
src/dotty/tools/dotc/core/pickling
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,9 @@ class ClassfileParser(
226
226
while (! isDelimiter(sig(index))) { index += 1 }
227
227
sig.slice(start, index)
228
228
}
229
- def sig2type (tparams : immutable.Map [Name ,Symbol ], skiptvs : Boolean ): Type = {
229
+ // Warning: sigToType contains nested completers which might be forced in a later run!
230
+ // So local methods need their own ctx parameters.
231
+ def sig2type (tparams : immutable.Map [Name ,Symbol ], skiptvs : Boolean )(implicit ctx : Context ): Type = {
230
232
val tag = sig(index); index += 1
231
233
(tag : @ switch) match {
232
234
case BYTE_TAG => defn.ByteType
@@ -321,7 +323,7 @@ class ClassfileParser(
321
323
}
322
324
} // sig2type(tparams, skiptvs)
323
325
324
- def sig2typeBounds (tparams : immutable.Map [Name , Symbol ], skiptvs : Boolean ): Type = {
326
+ def sig2typeBounds (tparams : immutable.Map [Name , Symbol ], skiptvs : Boolean )( implicit ctx : Context ) : Type = {
325
327
val ts = new ListBuffer [Type ]
326
328
while (sig(index) == ':' ) {
327
329
index += 1
You can’t perform that action at this time.
0 commit comments