Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main(args: Array<String>) {
- val x = 10
- val y = 9
- if(x == 6) {
- if(y == 6) {
- println("a")
- } else {
- println("b")
- }
- } else {
- println("c")
- }
- }
- /*
- The goto at the end of the inner if block (instruction 34 in hello.kt.javap)
- points directly at another goto (insn 47) which is the end of the outer if block.
- In the equivalent compiled java you can see that the goto at the
- end of the inner if (insn 26) targets directly the end of the outer else (insn 48).
- I'm also not sure the reason for putting the constant strings into
- local slot 3 before passing them to the println method, and I'd be
- very interested to know why that is.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement