blob: 75b2c3b07f1a06e27aad411fafab3f2d14f4e4f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
t3488.scala:4: warning: a pure expression does nothing in statement position
println(foo { val List(_*)=List(0); 1 } ())
^
t3488.scala:4: warning: multiline expressions might require enclosing parentheses; a value can be silently discarded when Unit is expected
println(foo { val List(_*)=List(0); 1 } ())
^
t3488.scala:5: warning: a pure expression does nothing in statement position
println(foo { val List(_*)=List(0); 1 } (1))
^
t3488.scala:5: warning: multiline expressions might require enclosing parentheses; a value can be silently discarded when Unit is expected
println(foo { val List(_*)=List(0); 1 } (1))
^
0
1
|