Skip to content

Commit d03d8bd

Browse files
committed
return simplified check
1 parent 76d8913 commit d03d8bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,6 +4269,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
42694269
def qualifying = (ownedVars -- locked).toList
42704270
val resultAlreadyConstrained = pt1.isInstanceOf[MethodOrPoly]
42714271
if !formal.isGround
4272+
&& formal.simplified `ne` formal
42724273
&& (pt1 `ne` pt)
42734274
&& (pt1 ne sharpenedPt)
42744275
&& (ownedVars ne locked)

0 commit comments

Comments
 (0)