Functions
The following functions are available globally.
-
overrides Swift global
fatalError
, used for unit tests.Declaration
Swift
public func fatalError(_ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) -> Never
-
This is a
noreturn
function that pauses foreverDeclaration
Swift
public func unreachable() -> Never