We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57bf2f4 commit b6cb7b9Copy full SHA for b6cb7b9
tests/neg-custom-args/fatal-warnings/i15503i.scala
@@ -151,3 +151,17 @@ package foo.test.i16877:
151
152
@ExampleAnnotation(new HashMap()) // OK
153
class Test //OK
154
+
155
+package foo.test.i16926:
156
+ def hello(): Unit =
157
+ for {
158
+ i <- (0 to 10).toList
159
+ (a, b) = "hello" -> "world" // OK
160
+ } yield println(s"$a $b")
161
162
+package foo.test.i16925:
163
+ def hello =
164
165
+ i <- 1 to 2 if true
166
+ _ = println(i) // OK
167
+ } yield ()
tests/neg-custom-args/fatal-warnings/i16925.scala
tests/neg-custom-args/fatal-warnings/i16926.scala
0 commit comments