Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2017 14:17
Show Gist options
  • Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.
Save anonymous/17f77a1009fe90b5b47a842cbc668b58 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Aug 30, 2017.
    9 changes: 9 additions & 0 deletions TheAbyss.h
    Original 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"