Created
August 30, 2017 14:17
-
-
Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.
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
// TheAbyss.h | |
+ (NSString *)greetingMessageFromTheOtherworld; | |
// TheAbyss.m | |
+ (NSString *)greetingMessageFromTheOtherworld { | |
return nil; | |
} | |
// LonesomeWanderer.swift TheAbyss.greetingMessageFromTheOtherworld().isEmpty | |
// compiles fine, but crashes at runtime with a lovely message: | |
// "fatal error: unexpectedly found nil while unwrapping an Optional value" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment