|
1 | | --- Error: tests/neg/i15009a.scala:3:2 ---------------------------------------------------------------------------------- |
2 | | -3 | '[Int] // error |
3 | | - | ^^^^^^ |
4 | | - | Quoted types `'[..]` can only be used in patterns. |
5 | | - | |
6 | | - | Hint: To get a scala.quoted.Type[T] use scala.quoted.Type.of[T] instead. |
7 | | --- Error: tests/neg/i15009a.scala:4:2 ---------------------------------------------------------------------------------- |
| 1 | +-- Error: tests/neg/i15009a.scala:4:9 ---------------------------------------------------------------------------------- |
8 | 2 | 4 | '[List[${Type.of[Int]}]] // error |
9 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
10 | | - | Quoted types `'[..]` can only be used in patterns. |
| 3 | + | ^^^^^^^^^^^^^^^ |
| 4 | + | Type splicing with `$` in quotes not supported anymore |
11 | 5 | | |
12 | | - | Hint: To get a scala.quoted.Type[T] use scala.quoted.Type.of[T] instead. |
| 6 | + | Hint: To use a given Type[T] in a quote just write T directly |
13 | 7 | -- Error: tests/neg/i15009a.scala:7:16 --------------------------------------------------------------------------------- |
14 | 8 | 7 | case '[List[$a]] => // error |
15 | 9 | | ^^ |
|
21 | 15 | | ^^^^ |
22 | 16 | | Type splicing with `$` in quotes not supported anymore |
23 | 17 | | |
24 | | - | Hint: Use a given Type[T] in a quote just write T directly |
| 18 | + | Hint: To use a given Type[T] in a quote just write T directly |
25 | 19 | -- Error: tests/neg/i15009a.scala:11:9 --------------------------------------------------------------------------------- |
26 | 20 | 11 | val t: ${int} = ??? // error |
27 | 21 | | ^^^^^^ |
28 | 22 | | Type splicing with `$` in quotes not supported anymore |
29 | 23 | | |
30 | | - | Hint: Use a given Type[T] in a quote just write T directly |
| 24 | + | Hint: To use a given Type[T] in a quote just write T directly |
| 25 | +-- Error: tests/neg/i15009a.scala:3:2 ---------------------------------------------------------------------------------- |
| 26 | +3 | '[Int] // error |
| 27 | + | ^^^^^^ |
| 28 | + | Quoted types `'[..]` can only be used in patterns. |
| 29 | + | |
| 30 | + | Hint: To get a scala.quoted.Type[T] use scala.quoted.Type.of[T] instead. |
31 | 31 | -- [E006] Not Found Error: tests/neg/i15009a.scala:12:2 ---------------------------------------------------------------- |
32 | 32 | 12 | $int // error: Not found: $int |
33 | 33 | | ^^^^ |
|
0 commit comments