-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b98f8a
commit 2a7a7ec
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/neg-custom-args/deprecation/manifest-summoning.check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- Error: tests/neg-custom-args/deprecation/manifest-summoning.scala:1:34 ---------------------------------------------- | ||
1 |val foo = manifest[List[? <: Int]] // error | ||
| ^ | ||
| Compiler synthesis of Manifest and OptManifest is deprecated, | ||
| and calls should be replaced by `reflect.classTag[List[? <: Int]]`. | ||
| Alternatively, the using new metaprogramming features of Scala 3 | ||
| could help avoid the need for runtime type information, see | ||
| https://docs.scala-lang.org/scala3/reference/metaprogramming.html | ||
-- Error: tests/neg-custom-args/deprecation/manifest-summoning.scala:2:41 ---------------------------------------------- | ||
2 |val bar = optManifest[Array[? <: String]] // error | ||
| ^ | ||
| Compiler synthesis of Manifest and OptManifest is deprecated, | ||
| and calls should be replaced by `reflect.classTag[Array[? <: String]]`. | ||
| Alternatively, the using new metaprogramming features of Scala 3 | ||
| could help avoid the need for runtime type information, see | ||
| https://docs.scala-lang.org/scala3/reference/metaprogramming.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
val foo = manifest[List[? <: Int]] // error | ||
val bar = optManifest[Array[? <: String]] // error |