|
| 1 | +-- Error: tests/neg/type-qmark.scala:1:10 ------------------------------------------------------------------------------ |
| 2 | +1 |class Foo[?] // error |
| 3 | + | ^ |
| 4 | + | `?` is not a valid type name |
| 5 | +-- Error: tests/neg/type-qmark.scala:2:12 ------------------------------------------------------------------------------ |
| 6 | +2 |class Bar[M[?]] // error |
| 7 | + | ^ |
| 8 | + | `?` is not a valid type name, use `_` to denote a higher-kinded type parameter |
| 9 | +-- Error: tests/neg/type-qmark.scala:13:7 ------------------------------------------------------------------------------ |
| 10 | +13 | case ?() // error |
| 11 | + | ^ |
| 12 | + | `?` is not a valid type name |
| 13 | +-- Error: tests/neg/type-qmark.scala:16:8 ------------------------------------------------------------------------------ |
| 14 | +16 | class ? { val x = 1 } // error |
| 15 | + | ^ |
| 16 | + | `?` is not a valid type name |
| 17 | +-- Error: tests/neg/type-qmark.scala:19:8 ------------------------------------------------------------------------------ |
| 18 | +19 | trait ? // error |
| 19 | + | ^ |
| 20 | + | `?` is not a valid type name |
| 21 | +-- Error: tests/neg/type-qmark.scala:22:7 ------------------------------------------------------------------------------ |
| 22 | +22 | type ? = Int // error |
| 23 | + | ^ |
| 24 | + | `?` is not a valid type name |
| 25 | +-- Error: tests/neg/type-qmark.scala:25:7 ------------------------------------------------------------------------------ |
| 26 | +25 | enum ? { // error |
| 27 | + | ^ |
| 28 | + | `?` is not a valid type name |
| 29 | +-- Error: tests/neg/type-qmark.scala:31:8 ------------------------------------------------------------------------------ |
| 30 | +31 | given ?[T] as Foo[T] {} // error |
| 31 | + | ^ |
| 32 | + | `?` is not a valid type name |
| 33 | +-- Error: tests/neg/type-qmark.scala:3:8 ------------------------------------------------------------------------------- |
| 34 | +3 |def foo[?] = {} // error |
| 35 | + | ^ |
| 36 | + | `?` is not a valid type name |
| 37 | +-- Error: tests/neg/type-qmark.scala:4:10 ------------------------------------------------------------------------------ |
| 38 | +4 |def bar[M[?]] = {} // error |
| 39 | + | ^ |
| 40 | + | `?` is not a valid type name, use `_` to denote a higher-kinded type parameter |
| 41 | +-- Error: tests/neg/type-qmark.scala:6:7 ------------------------------------------------------------------------------- |
| 42 | +6 |type A[?] = Int // error |
| 43 | + | ^ |
| 44 | + | `?` is not a valid type name |
| 45 | +-- Error: tests/neg/type-qmark.scala:7:10 ------------------------------------------------------------------------------ |
| 46 | +7 |type B = [?] =>> Int // error |
| 47 | + | ^ |
| 48 | + | `?` is not a valid type name |
| 49 | +-- Error: tests/neg/type-qmark.scala:8:10 ------------------------------------------------------------------------------ |
| 50 | +8 |type C = [?] => Int => Int // error |
| 51 | + | ^ |
| 52 | + | `?` is not a valid type name |
| 53 | +-- Error: tests/neg/type-qmark.scala:9:12 ------------------------------------------------------------------------------ |
| 54 | +9 |type D = [X[?]] =>> Int // error |
| 55 | + | ^ |
| 56 | + | `?` is not a valid type name, use `_` to denote a higher-kinded type parameter |
| 57 | +-- Error: tests/neg/type-qmark.scala:10:12 ----------------------------------------------------------------------------- |
| 58 | +10 |type E = [X[?]] => Int => Int // error |
| 59 | + | ^ |
| 60 | + | `?` is not a valid type name, use `_` to denote a higher-kinded type parameter |
0 commit comments