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 a6a3385 commit ab79724Copy full SHA for ab79724
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -627,6 +627,9 @@ trait ImplicitRunInfo:
627
traverse(t.underlying)
628
case t: TermParamRef =>
629
630
+ case t: TypeLambda =>
631
+ for p <- t.paramRefs do partSeen += p
632
+ traverseChildren(t)
633
case t =>
634
traverseChildren(t)
635
tests/neg/i16146.scala
@@ -0,0 +1,3 @@
1
+
2
+type N = [X] => (X => X) => X => X
3
+val exp = (a: N) => (b: N) => b(a) // error
0 commit comments