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 5ea9a74 commit 8986cb7Copy full SHA for 8986cb7
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -1501,7 +1501,7 @@ class Namer { typer: Typer =>
1501
val approxTp = wildApprox(originalTp)
1502
approxTp.stripPoly match
1503
case atp @ defn.ContextFunctionType(_, resType, _)
1504
- if !defn.isNonRefinedFunction(approxTp) // in this case `resType` is lying, gives us only the non-dependent upper bound
+ if !defn.isNonRefinedFunction(atp) // in this case `resType` is lying, gives us only the non-dependent upper bound
1505
|| resType.existsPart(_.isInstanceOf[WildcardType], stopAtStatic = true, forceLazy = false) =>
1506
originalTp
1507
case _ =>
0 commit comments