Skip to content

Commit 2af117f

Browse files
committed
Add missing test for Wunused
1 parent b4e5cb7 commit 2af117f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/neg-custom-args/fatal-warnings/i15503i.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,17 @@ package foo.test.i17156:
292292
import b.Xd
293293
trait Z derives Xd
294294

295+
296+
package foo.test.i17175:
297+
val continue = true
298+
def foo =
299+
for {
300+
i <- 1.until(10) // OK
301+
if continue
302+
} {
303+
println(i)
304+
}
305+
295306
package foo.test.i17117:
296307
package example {
297308
object test1 {

0 commit comments

Comments
 (0)