|
| 1 | +-- [E007] Type Mismatch Error: tests/neg/i19445.scala:17:15 ------------------------------------------------------------ |
| 2 | +17 | val x: Int = ??? : UnwrapTypes[FooBar.Bar[Int]] // error |
| 3 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | + | Found: Test.UnwrapTypes[FooBar.Bar[Int]] |
| 5 | + | Required: Int |
| 6 | + | |
| 7 | + | Note: a match type could not be fully reduced: |
| 8 | + | |
| 9 | + | trying to reduce Test.UnwrapTypes[FooBar.Bar[Int]] |
| 10 | + | failed since selector FooBar.Bar[Int] |
| 11 | + | does not match case BarFoo.Bar[x] => Test.UnwrapTypes[x] |
| 12 | + | and cannot be shown to be disjoint from it either. |
| 13 | + | Therefore, reduction cannot advance to the remaining cases |
| 14 | + | |
| 15 | + | case String => String |
| 16 | + | case Int => Int |
| 17 | + | |
| 18 | + | longer explanation available when compiling with `-explain` |
| 19 | +-- [E007] Type Mismatch Error: tests/neg/i19445.scala:18:28 ------------------------------------------------------------ |
| 20 | +18 | val tup: (Int, String) = ??? : UnwrapTypes[(FooBar.Bar[Int], FooBar.Bar[String])] // error |
| 21 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 22 | + | Found: (Test.UnwrapTypes[FooBar.Bar[Int]], Test.UnwrapTypes[FooBar.Bar[String]]) |
| 23 | + | Required: (Int, String) |
| 24 | + | |
| 25 | + | Note: a match type could not be fully reduced: |
| 26 | + | |
| 27 | + | trying to reduce Test.UnwrapTypes[FooBar.Bar[Int]] |
| 28 | + | failed since selector FooBar.Bar[Int] |
| 29 | + | does not match case BarFoo.Bar[x] => Test.UnwrapTypes[x] |
| 30 | + | and cannot be shown to be disjoint from it either. |
| 31 | + | Therefore, reduction cannot advance to the remaining cases |
| 32 | + | |
| 33 | + | case String => String |
| 34 | + | case Int => Int |
| 35 | + | |
| 36 | + | longer explanation available when compiling with `-explain` |
0 commit comments