Skip to content

Commit 8986cb7

Browse files
authored
Update compiler/src/dotty/tools/dotc/typer/Namer.scala
1 parent 5ea9a74 commit 8986cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ class Namer { typer: Typer =>
15011501
val approxTp = wildApprox(originalTp)
15021502
approxTp.stripPoly match
15031503
case atp @ defn.ContextFunctionType(_, resType, _)
1504-
if !defn.isNonRefinedFunction(approxTp) // in this case `resType` is lying, gives us only the non-dependent upper bound
1504+
if !defn.isNonRefinedFunction(atp) // in this case `resType` is lying, gives us only the non-dependent upper bound
15051505
|| resType.existsPart(_.isInstanceOf[WildcardType], stopAtStatic = true, forceLazy = false) =>
15061506
originalTp
15071507
case _ =>

0 commit comments

Comments
 (0)