Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def doTest(): Unit = {
- val s = Array(1, 2, 3)
- s.foreach(i => println(i))
- }
- public void doTest();
- Code:
- 0: iconst_3
- 1: newarray int
- 3: dup
- 4: iconst_0
- 5: iconst_1
- 6: iastore
- 7: dup
- 8: iconst_1
- 9: iconst_2
- 10: iastore
- 11: dup
- 12: iconst_2
- 13: iconst_3
- 14: iastore
- 15: astore_1
- 16: getstatic #28 // Field scala/Predef$.MODULE$:Lscala/Predef$;
- 19: aload_1
- 20: invokevirtual #32 // Method scala/Predef$.intArrayOps:([I)Lscala/collection/mutable/ArrayOps;
- 23: new #34 // class test$$anonfun$doTest$1
- 26: dup
- 27: aload_0
- 28: invokespecial #37 // Method test$$anonfun$doTest$1."<init>":(Ltest;)V
- 31: invokeinterface #43, 2 // InterfaceMethod scala/collection/mutable/ArrayOps.foreach:(Lscala/Function1;)V
- 36: return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement