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.
2 parents 09de63c + 4da5d71 commit 1246b4bCopy full SHA for 1246b4b
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