Created
August 30, 2017 14:17
-
-
Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ // 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"