blob: 2291da2519943ba9a1344d1aa7fb836b6ececc30 (
plain) (
tree)
|
|
./tests/patmat/patmat-ortype.scala:8: warning: match may not be exhaustive.
It would fail on the following input: _: String
def foo2a(x: Int | Double | String) = x match { // _: String not matched
^
./tests/patmat/patmat-ortype.scala:18: warning: match may not be exhaustive.
It would fail on the following input: Some(_: String), None
def foo3(x: Option[Int | Double | String]) = x match { // warning: None, Some(_: String) not matched
^
./tests/patmat/patmat-ortype.scala:36: warning: match may not be exhaustive.
It would fail on the following input: Some(_: String)
def foo5b(x: Option[Int | Double | String]) = x match { // warning: Some(_: String) not matched
^
three warnings found
|