Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use scala.reflect.ClassTag instead of deprecated Manifest #67

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Oct 20, 2024

$ scala -deprecation
Welcome to Scala 3.3.4 (21.0.4, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                             
scala> implicitly[Manifest[Int]]
1 warning found
-- Deprecation Warning: --------------------------------------------------------
1 |implicitly[Manifest[Int]]
  |                         ^
  |Compiler synthesis of Manifest and OptManifest is deprecated, instead
  |replace with the type `scala.reflect.ClassTag[Int]`.
  |Alternatively, consider using the new metaprogramming features of Scala 3,
  |see https://docs.scala-lang.org/scala3/reference/metaprogramming.html
val res0: Manifest[Int] = Int
                                                                                                                                             
scala> implicitly[scala.reflect.ClassTag[Int]]
val res1: scala.reflect.ClassTag[Int] = Int

@unkarjedy
Copy link
Member

Thanks for the PR!

@unkarjedy unkarjedy merged commit 01616c0 into JetBrains:master Nov 4, 2024
1 check passed
@xuwei-k xuwei-k deleted the patch-2 branch November 4, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants