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 1716bcd commit c942f1fCopy full SHA for c942f1f
tests/pos/i19266.scala
@@ -0,0 +1,9 @@
1
+object i19266:
2
+ def fn1(x: Int, y: String = "y")(z: Double) = Some(s"$x$y$z")
3
+ def fn2(x: Int)(y: String) = Some(s"$x$y")
4
+
5
+ def checkCompile =
6
+ fn1(1)
7
+ // This should compile with warning
8
+ fn2(2)
9
+ val _ = fn2(3)
tests/warn/i19266.scala
@@ -0,0 +1,8 @@
+ def checkWarning =
+ fn1(1) // warn
+ fn2(2) // warn
+ val a = fn2(3) // warn
0 commit comments