Skip to content

Commit 42ad6dd

Browse files
committed
remove is not ground check
1 parent 24b2dc7 commit 42ad6dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,8 +4265,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
42654265
)
42664266
case _ =>
42674267
mapOver(t)
4268-
if !formal.isGround
4269-
&& (formal.simplified `ne` formal)
4268+
if (formal.simplified `ne` formal)
42704269
&& (pt1 `ne` pt)
42714270
&& (pt1 ne sharpenedPt) then
42724271
val approxRes = wildApprox(pt1.resultType)

0 commit comments

Comments
 (0)