blob: 75b2c3b07f1a06e27aad411fafab3f2d14f4e4f9 (
plain) (
tree)
|
|
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
|