|
5 | 5 | | Required: [T] => (x$1: T) => Unit |
6 | 6 | | |
7 | 7 | | longer explanation available when compiling with `-explain` |
8 | | --- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:4:37 --------------------------------- |
9 | | -4 |def t1b: [T] => (erased T) => Unit = [T] => (t: T) => () // error |
10 | | - | ^^^^^^^^^^^^^^^^^^^ |
11 | | - | Found: [T] => (t: T) => Unit |
12 | | - | Required: [T] => (erased x$1: T) => Unit |
| 8 | +-- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:4:40 --------------------------------- |
| 9 | +4 |def t1b: [T] => (erased t: T) => Unit = [T] => (t: T) => () // error |
| 10 | + | ^^^^^^^^^^^^^^^^^^^ |
| 11 | + | Found: [T] => (t: T) => Unit |
| 12 | + | Required: [T] => (erased t: T) => Unit |
13 | 13 | | |
14 | 14 | | longer explanation available when compiling with `-explain` |
15 | 15 | -- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:6:36 --------------------------------- |
|
19 | 19 | | Required: [T, U] => (x$1: T, x$2: U) => Unit |
20 | 20 | | |
21 | 21 | | longer explanation available when compiling with `-explain` |
22 | | --- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:7:43 --------------------------------- |
23 | | -7 |def t2b: [T, U] => (T, erased U) => Unit = [T, U] => (t: T, u: U) => () // error |
24 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
25 | | - | Found: [T, U] => (t: T, u: U) => Unit |
26 | | - | Required: [T, U] => (x$1: T, erased x$2: U) => Unit |
| 22 | +-- [E007] Type Mismatch Error: tests/neg/polymorphic-erased-functions-types.scala:7:49 --------------------------------- |
| 23 | +7 |def t2b: [T, U] => (t: T, erased u: U) => Unit = [T, U] => (t: T, u: U) => () // error |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 25 | + | Found: [T, U] => (t: T, u: U) => Unit |
| 26 | + | Required: [T, U] => (t: T, erased u: U) => Unit |
27 | 27 | | |
28 | 28 | | longer explanation available when compiling with `-explain` |
0 commit comments