Last active
February 14, 2017 11:31
-
-
Save lrytz/fb9c38d0454f05ddb34907e4b4cc169c to your computer and use it in GitHub Desktop.
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
class C { | |
def fin(): Unit = () | |
def m(x: Int) = () | |
def inspect: Unit = { | |
try { | |
m(if (this == null) return else 1) // jump to finally block, `this` on stack | |
return // jump to finally block, empty stack | |
} finally { | |
fin() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment