|
| 1 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:6:20 ------------------------------------------------------------- |
| 2 | +6 | val b1: "foo" = null // error |
| 3 | + | ^^^^ |
| 4 | + | Found: Null |
| 5 | + | Required: ("foo" : String) |
| 6 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 7 | + | must be more specific than ("foo" : String) |
| 8 | + | |
| 9 | + | longer explanation available when compiling with `-explain` |
| 10 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:9:22 ------------------------------------------------------------- |
| 11 | +9 | val c2: c1.type = null // error |
| 12 | + | ^^^^ |
| 13 | + | Found: Null |
| 14 | + | Required: (c1 : ("foo" : String)) |
| 15 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 16 | + | must be more specific than (c1 : ("foo" : String)) |
| 17 | + | |
| 18 | + | longer explanation available when compiling with `-explain` |
| 19 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:17:22 ------------------------------------------------------------ |
| 20 | +17 | val e2: e1.type = null // error |
| 21 | + | ^^^^ |
| 22 | + | Found: Null |
| 23 | + | Required: (e1 : MyNonNullable) |
| 24 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 25 | + | must be more specific than (e1 : MyNonNullable) |
| 26 | + | |
| 27 | + | longer explanation available when compiling with `-explain` |
| 28 | +-- [E172] Type Error: tests/neg/i17467.scala:19:26 --------------------------------------------------------------------- |
| 29 | +19 | summon[Null <:< "foo"] // error |
| 30 | + | ^ |
| 31 | + | Cannot prove that Null <:< ("foo" : String). |
| 32 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:21:23 ------------------------------------------------------------ |
| 33 | +21 | val f1: Mod.type = null // error |
| 34 | + | ^^^^ |
| 35 | + | Found: Null |
| 36 | + | Required: Test.Mod.type |
| 37 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 38 | + | must be more specific than Test.Mod.type |
| 39 | + | |
| 40 | + | longer explanation available when compiling with `-explain` |
| 41 | +-- [E083] Type Error: tests/neg/i17467.scala:24:12 --------------------------------------------------------------------- |
| 42 | +24 | val g2: g1.type = null // error // error |
| 43 | + | ^^^^^^^ |
| 44 | + | (g1 : AnyRef) is not a valid singleton type, since it is not an immutable path |
| 45 | + | |
| 46 | + | longer explanation available when compiling with `-explain` |
| 47 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:24:22 ------------------------------------------------------------ |
| 48 | +24 | val g2: g1.type = null // error // error |
| 49 | + | ^^^^ |
| 50 | + | Found: Null |
| 51 | + | Required: (g1 : AnyRef) |
| 52 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 53 | + | must be more specific than (g1 : AnyRef) |
| 54 | + | |
| 55 | + | longer explanation available when compiling with `-explain` |
| 56 | +-- [E007] Type Mismatch Error: tests/neg/i17467.scala:33:24 ------------------------------------------------------------ |
| 57 | +33 | def me: this.type = null // error |
| 58 | + | ^^^^ |
| 59 | + | Found: Null |
| 60 | + | Required: (Bar.this : Test.Bar) |
| 61 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 62 | + | must be more specific than (Bar.this : Test.Bar) |
| 63 | + | |
| 64 | + | longer explanation available when compiling with `-explain` |
0 commit comments