|
| 1 | +-- [E007] Type Mismatch Error: tests/neg/6314.scala:28:27 -------------------------------------------------------------- |
| 2 | +28 | val i: Bar[Y | Type] = 1 // error |
| 3 | + | ^ |
| 4 | + | Found: (1 : Int) |
| 5 | + | Required: Test1Bis.Bar[Test1Bis.Y | Test.this.Type] |
| 6 | + | |
| 7 | + | Note: a match type could not be fully reduced: |
| 8 | + | |
| 9 | + | trying to reduce Test1Bis.Bar[Test1Bis.Y | Test.this.Type] |
| 10 | + | failed since selector Test1Bis.Y | Test.this.Type |
| 11 | + | does not match case Test1Bis.X & Test1Bis.Y => String |
| 12 | + | and cannot be shown to be disjoint from it either. |
| 13 | + | Therefore, reduction cannot advance to the remaining case |
| 14 | + | |
| 15 | + | case Any => Int |
| 16 | + | |
| 17 | + | longer explanation available when compiling with `-explain` |
| 18 | +-- [E007] Type Mismatch Error: tests/neg/6314.scala:45:33 -------------------------------------------------------------- |
| 19 | +45 | def right(fa: Bar[L]): Int = fa // error |
| 20 | + | ^^ |
| 21 | + | Found: (fa : Wizzle.this.Bar[L]) |
| 22 | + | Required: Int |
| 23 | + | |
| 24 | + | where: L is a type in trait Wizzle with bounds <: Int & Singleton |
| 25 | + | |
| 26 | + | longer explanation available when compiling with `-explain` |
| 27 | +-- [E007] Type Mismatch Error: tests/neg/6314.scala:55:33 -------------------------------------------------------------- |
| 28 | +55 | def right(fa: Bar[L]): Int = fa // error |
| 29 | + | ^^ |
| 30 | + | Found: (fa : Wazzlo.this.Bar[L]) |
| 31 | + | Required: Int |
| 32 | + | |
| 33 | + | where: L is a type in trait Wazzlo with bounds <: Int & AnyVal |
| 34 | + | |
| 35 | + | longer explanation available when compiling with `-explain` |
| 36 | +-- [E007] Type Mismatch Error: tests/neg/6314.scala:65:33 -------------------------------------------------------------- |
| 37 | +65 | def right(fa: Bar[L]): Int = fa // error |
| 38 | + | ^^ |
| 39 | + | Found: (fa : Wuzzlu.this.Bar[L]) |
| 40 | + | Required: Int |
| 41 | + | |
| 42 | + | where: L is a type in trait Wuzzlu with bounds <: String & AnyRef |
| 43 | + | |
| 44 | + | longer explanation available when compiling with `-explain` |
0 commit comments