Skip to content

Instantly share code, notes, and snippets.

@ezura
Created January 14, 2018 01:54
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 ezura/19f6ab29acb1e5ea31480e5423cbeed7 to your computer and use it in GitHub Desktop.
Save ezura/19f6ab29acb1e5ea31480e5423cbeed7 to your computer and use it in GitHub Desktop.
var global: Any? = nil
class A {
deinit {
global = self
}
}
do {
_ = A()
}
// ❗️: error: Execution was interrupted, reason: EXC_BAD_ACCESS.
global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment