blob: 16e31e257231b2f0657dbfcbe2c2bdc137358333 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
trait ValueDiscard[@specialized U] {
def u: U
}
/* Was:
scalac-hash v2.11.5 -Ywarn-value-discard test/files/pos/t9020.scala
test/files/pos/t9020.scala:2: warning: discarded non-Unit value
def u: U
^
one warning found
*/
|