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 76d8913 commit d03d8bdCopy full SHA for d03d8bd
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -4269,6 +4269,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4269
def qualifying = (ownedVars -- locked).toList
4270
val resultAlreadyConstrained = pt1.isInstanceOf[MethodOrPoly]
4271
if !formal.isGround
4272
+ && formal.simplified `ne` formal
4273
&& (pt1 `ne` pt)
4274
&& (pt1 ne sharpenedPt)
4275
&& (ownedVars ne locked)
0 commit comments