Last active
June 13, 2021 10:48
-
-
Save aoiroaoino/658b5a44b4fb1967ff5d0cd14889ecdf to your computer and use it in GitHub Desktop.
scala.Predef.intWrapper が機能していない?
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
➜ /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 |
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
➜ /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