Created
June 14, 2014 21:50
-
-
Save penso/43a3535c989c6b285876 to your computer and use it in GitHub Desktop.
xcode6-crash sample
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
import Cocoa | |
var options = Dictionary<String, AnyObject?>() | |
options["body"] = "something" | |
// Working | |
if let body : AnyObject = options["body"]! { | |
body | |
} | |
// Working | |
options["body"] | |
// Crashing xcode | |
/* | |
if let body = options["body"] as String? { | |
body | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment