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 480cb8d commit 24b2dc7Copy full SHA for 24b2dc7
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -4265,12 +4265,10 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
4265
)
4266
case _ =>
4267
mapOver(t)
4268
- val resultAlreadyConstrained = pt1.isInstanceOf[MethodOrPoly]
4269
if !formal.isGround
4270
&& (formal.simplified `ne` formal)
4271
&& (pt1 `ne` pt)
4272
- && (pt1 ne sharpenedPt)
4273
- && !resultAlreadyConstrained then
+ && (pt1 ne sharpenedPt) then
4274
val approxRes = wildApprox(pt1.resultType)
4275
val stripedApproxRes = tm(approxRes)
4276
if !stripedApproxRes.containsWildcardTypes then
0 commit comments