Skip to content

Instantly share code, notes, and snippets.

@aclissold
Created February 18, 2015 03:55
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 aclissold/3c689adf93e0abb231e2 to your computer and use it in GitHub Desktop.
Save aclissold/3c689adf93e0abb231e2 to your computer and use it in GitHub Desktop.
Interesting way to crash Swift
class OneClass {}
class AnotherClass {}
let one = OneClass()
let another = AnotherClass()
let crash = one as AnyObject as AnotherClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment