Created
May 23, 2023 15:20
-
-
Save szeiger/5e6cb78f99729d6255cb21ba6319607c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ ~/scala/scala-2.13.10/bin/scala -opt:local | |
Welcome to Scala 2.13.10 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_131). | |
Type in expressions for evaluation. Or try :help. | |
scala> case class Box[A](value: A) extends AnyVal | |
class Box | |
scala> class C { def foo = Box(42).value } | |
class C | |
scala> :javap C | |
[...] | |
public int foo(); | |
descriptor: ()I | |
flags: ACC_PUBLIC | |
Code: | |
stack=1, locals=1, args_size=1 | |
0: bipush 42 | |
2: ireturn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment