Skip to content

Instantly share code, notes, and snippets.

@penso
Created June 14, 2014 21:50
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 penso/43a3535c989c6b285876 to your computer and use it in GitHub Desktop.
Save penso/43a3535c989c6b285876 to your computer and use it in GitHub Desktop.
xcode6-crash sample
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