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 7a99d3d commit 4da5d71Copy full SHA for 4da5d71
tests/neg/i3081.scala
@@ -0,0 +1,10 @@
1
+object Test {
2
+ inline def encode(n: String): List[String] =
3
+ for {
4
+ a <- List("s")
5
+ b <- List("w")
6
+ c <- encode(n)
7
+ } yield c
8
+
9
+ def encode0(n: String) = encode(n) // error
10
+}
0 commit comments