We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe718b commit 9f3c727Copy full SHA for 9f3c727
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -4252,7 +4252,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4252
4253
val ownedVars = ctx.typerState.ownedVars
4254
val pt1 = pt.deepenProtoTrans
4255
- if ((formal.simplified `ne` formal) && (pt1 `ne` pt) && (pt1 ne sharpenedPt) && (ownedVars ne locked) && !ownedVars.isEmpty) {
+ if ((!formal.isGround) && (formal.simplified `ne` formal) && (pt1 `ne` pt) && (pt1 ne sharpenedPt) && (ownedVars ne locked) && !ownedVars.isEmpty) {
4256
val qualifying = (ownedVars -- locked).toList
4257
if (qualifying.nonEmpty) {
4258
val resultAlreadyConstrained = pt1.isInstanceOf[MethodOrPoly]
0 commit comments