Skip to content

Instantly share code, notes, and snippets.

@lrytz
Last active February 14, 2017 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrytz/fb9c38d0454f05ddb34907e4b4cc169c to your computer and use it in GitHub Desktop.
Save lrytz/fb9c38d0454f05ddb34907e4b4cc169c to your computer and use it in GitHub Desktop.
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