Skip to content

Instantly share code, notes, and snippets.

@aoiroaoino
Last active June 13, 2021 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aoiroaoino/658b5a44b4fb1967ff5d0cd14889ecdf to your computer and use it in GitHub Desktop.
Save aoiroaoino/658b5a44b4fb1967ff5d0cd14889ecdf to your computer and use it in GitHub Desktop.
scala.Predef.intWrapper が機能していない?
➜ /tmp scala
Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java 11.0.8).
Type in expressions for evaluation. Or try :help.
scala> val b: Byte = 1
val b: Byte = 1
scala> b.toHexString
val res0: String = 1
➜ /tmp sdk use scala 3.0.0
Using scala version 3.0.0 in this shell.
➜ /tmp scala
scala> val b: Byte = 1
val b: Byte = 1
scala> b.toHexString
1 |b.toHexString
|^^^^^^^^^^^^^
|value toHexString is not a member of Byte.
|An extension method was tried, but could not be fully constructed:
|
| intWrapper(b)
scala> (b: Int).toHexString
val res0: String = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment