|
| 1 | +class sym (Axis, Int) | ShapeTuple |
| 2 | +class sym Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) *: EmptyTuple.type) |
| 3 | +approx or Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) *: EmptyTuple.type)///[33mtrait[0m [35mTuple[0m/// Tuple |
| 4 | +approx or (Axis, Int) | ShapeTuple///[33mtrait[0m [35mProduct2[0m, [33mtrait[0m [35mSerializable[0m, [33mclass[0m [35m*:[0m/// <notype>, Serializable, (Axis | (Axis, Int)) *: (Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) |
| 5 | + |
| 6 | +*: EmptyTuple.type)) |
| 7 | +class sym Tuple1[(Axis, Int)] | ((Axis, Int), (Axis, Int)) |
| 8 | +class sym EmptyTuple.type | (Axis, Int) *: EmptyTuple.type |
| 9 | +approx or EmptyTuple | (Axis, Int) *: EmptyTuple.type///[33mtrait[0m [35mTuple[0m/// Tuple |
| 10 | +approx or Tuple1[(Axis, Int)] | ((Axis, Int), (Axis, Int))///[33mtrait[0m [35mSerializable[0m, [33mclass[0m [35m*:[0m/// Serializable, (Axis, Int) *: (EmptyTuple.type | (Axis, Int) *: EmptyTuple.type) |
| 11 | +[33m-- [E029] Pattern Match Exhaustivity Warning: i13435.scala:7:2 -----------------[0m |
| 12 | +[33m7 |[0m s [33mmatch[0m |
| 13 | + | [33m^[0m |
| 14 | + | [33mmatch[0m may not be exhaustive. |
| 15 | + | |
| 16 | + | It would fail on pattern case: (_), ((_, _), (_, _)) |
| 17 | + |
| 18 | +longer explanation available when compiling with `-explain` |
| 19 | +class sym (Axis, Int) | ShapeTuple |
| 20 | +class sym Tuple1[(Axis, Int)] | ((Axis, Int), (Axis, Int)) |
| 21 | +class sym (Axis, Int) | ShapeTuple |
| 22 | +class sym Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) *: EmptyTuple.type) |
| 23 | +approx or Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) *: EmptyTuple.type)///[33mtrait[0m [35mTuple[0m/// Tuple |
| 24 | +approx or (Axis, Int) | ShapeTuple///[33mtrait[0m [35mProduct2[0m, [33mtrait[0m [35mSerializable[0m, [33mclass[0m [35m*:[0m/// <notype>, Serializable, (Axis | (Axis, Int)) *: (Int *: EmptyTuple.type | (EmptyTuple.type | (Axis, Int) |
| 25 | + |
| 26 | +*: EmptyTuple.type)) |
| 27 | +[31m-- Error: i13435.scala:8:10 ----------------------------------------------------[0m |
| 28 | +[31m8 |[0m [33mcase[0m (dim: Axis, size: Int) => dim [34m// error[0m |
| 29 | + | [31m^^^^^^^^^[0m |
| 30 | + | [33mtrait[0m [35mSingleton[0m cannot be used in runtime type tests |
| 31 | +1 warning found |
| 32 | +1 error found |
0 commit comments