Skip to content

Instantly share code, notes, and snippets.

@fabb fabb/TheAbyss.h forked from anonymous/TheAbyss.h
Last active Oct 25, 2017

Embed
What would you like to do?
// 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
You can’t perform that action at this time.