blob: d3e2ec73f49411f4174f3ee904b882438fa6e708 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
./tests/patmat/t9657.scala:29: warning: match may not be exhaustive.
It would fail on the following input: Bus(_)
def refuel2[P <: Petrol.type](vehicle: Vehicle {type A = P} ): Vehicle = vehicle match {
^
./tests/patmat/t9657.scala:38: warning: match may not be exhaustive.
It would fail on the following input: Bus(_)
def foo2(vehicle: Vehicle {type A <: Petrol.type} ): Vehicle = vehicle match {
^
./tests/patmat/t9657.scala:49: warning: match may not be exhaustive.
It would fail on the following input: Bus(_)
def bar2(vehicle: Vehicle {type A <: P} ): Vehicle = vehicle match {
^
./tests/patmat/t9657.scala:58: warning: match may not be exhaustive.
It would fail on the following input: Bus(_)
def qux2[P <: Petrol.type](vehicle: Vehicle {type A <: P} ): Vehicle = vehicle match {
^
four warnings found
|