|
1 | 1 | -- Error: tests/neg-custom-args/deprecation/manifest-summoning.scala:1:34 ----------------------------------------------
|
2 | 2 | 1 |val foo = manifest[List[? <: Int]] // error
|
3 | 3 | | ^
|
4 |
| - | Compiler synthesis of Manifest and OptManifest is deprecated, |
5 |
| - | and calls should be replaced by `reflect.classTag[List[? <: Int]]`. |
6 |
| - | Alternatively, the using new metaprogramming features of Scala 3 |
7 |
| - | could help avoid the need for runtime type information, see |
8 |
| - | https://docs.scala-lang.org/scala3/reference/metaprogramming.html |
| 4 | + | Compiler synthesis of Manifest and OptManifest is deprecated, instead |
| 5 | + | replace with the type `scala.reflect.ClassTag[List[? <: Int]]`. |
| 6 | + | Alternatively, consider using the new metaprogramming features of Scala 3, |
| 7 | + | see https://docs.scala-lang.org/scala3/reference/metaprogramming.html |
9 | 8 | -- Error: tests/neg-custom-args/deprecation/manifest-summoning.scala:2:41 ----------------------------------------------
|
10 | 9 | 2 |val bar = optManifest[Array[? <: String]] // error
|
11 | 10 | | ^
|
12 |
| - | Compiler synthesis of Manifest and OptManifest is deprecated, |
13 |
| - | and calls should be replaced by `reflect.classTag[Array[? <: String]]`. |
14 |
| - | Alternatively, the using new metaprogramming features of Scala 3 |
15 |
| - | could help avoid the need for runtime type information, see |
16 |
| - | https://docs.scala-lang.org/scala3/reference/metaprogramming.html |
| 11 | + | Compiler synthesis of Manifest and OptManifest is deprecated, instead |
| 12 | + | replace with the type `scala.reflect.ClassTag[Array[? <: String]]`. |
| 13 | + | Alternatively, consider using the new metaprogramming features of Scala 3, |
| 14 | + | see https://docs.scala-lang.org/scala3/reference/metaprogramming.html |
0 commit comments