File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1412,7 +1412,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1412
1412
val impl1 = cpy.Template (impl)(constr1, parents1, self1, body1)
1413
1413
.withType(dummy.nonMemberTermRef)
1414
1414
checkVariance(impl1)
1415
- if (! cls.is(AbstractOrTrait ) && ! ctx.isAfterTyper) checkRealizableBounds(cls.appliedRef, cdef.namePos)
1415
+ if (! cls.is(AbstractOrTrait ) && ! ctx.isAfterTyper)
1416
+ checkRealizableBounds(cls.thisType, cdef.namePos) // !@@@ adapt
1416
1417
val cdef1 = assignType(cpy.TypeDef (cdef)(name, impl1), cls)
1417
1418
if (ctx.phase.isTyper && cdef1.tpe.derivesFrom(defn.DynamicClass ) && ! ctx.dynamicsEnabled) {
1418
1419
val isRequired = parents1.exists(_.tpe.isRef(defn.DynamicClass ))
You can’t perform that action at this time.
0 commit comments