Created
February 18, 2015 03:55
-
-
Save aclissold/3c689adf93e0abb231e2 to your computer and use it in GitHub Desktop.
Interesting way to crash Swift
This file contains hidden or 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 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