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 312a420 commit 00b0a9cCopy full SHA for 00b0a9c
compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala
@@ -461,11 +461,17 @@ class ClassfileParser(
461
val ts = new ListBuffer[Type]
462
while (sig(index) == ':') {
463
index += 1
464
- if (sig(index) != ':') // guard against empty class bound
465
- ts += sig2type(tparams, skiptvs)
+ if (sig(index) != ':') { // guard against empty class bound
+ val tp = sig2type(tparams, skiptvs)
466
+ if (!skiptvs)
467
+ ts += tp
468
+ }
469
470
+ if (!skiptvs) {
471
+ val bound = if ts.isEmpty then defn.AnyType else ts.reduceLeft(AndType.apply)
472
+ TypeBounds.upper(bound)
473
}
- val bound = if ts.isEmpty then defn.AnyType else ts.reduceLeft(AndType.apply)
- TypeBounds.upper(bound)
474
+ else NoType
475
476
477
var tparams = classTParams
0 commit comments