File tree 1 file changed +2
-2
lines changed
src/dotty/tools/dotc/typer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -986,7 +986,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
986
986
val impl1 = cpy.Template (impl)(constr1, parents1, self1, body1)
987
987
.withType(dummy.nonMemberTermRef)
988
988
checkVariance(impl1)
989
- if (! cls.is(AbstractOrTrait )) checkRealizableBounds(cls.typeRef, cdef.pos)
989
+ if (! cls.is(AbstractOrTrait ) && ! ctx.isAfterTyper ) checkRealizableBounds(cls.typeRef, cdef.pos)
990
990
assignType(cpy.TypeDef (cdef)(name, impl1, Nil ), cls)
991
991
992
992
// todo later: check that
@@ -1058,7 +1058,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1058
1058
def typedImport (imp : untpd.Import , sym : Symbol )(implicit ctx : Context ): Import = track(" typedImport" ) {
1059
1059
val expr1 = typedExpr(imp.expr, AnySelectionProto )
1060
1060
checkStable(expr1.tpe, imp.expr.pos)
1061
- checkRealizable(expr1.tpe, imp.expr.pos)
1061
+ if ( ! ctx.isAfterTyper) checkRealizable(expr1.tpe, imp.expr.pos)
1062
1062
assignType(cpy.Import (imp)(expr1, imp.selectors), sym)
1063
1063
}
1064
1064
You can’t perform that action at this time.
0 commit comments