Closed weyert closed 5 years ago
The fatalError-function doesn't support the common call fatalError() as seen in Swift projects
fatalError
fatalError()
Now I have to admit I tried to solve this but couldn't see a good solution as message is a closure and in Swift's stdlib defined as:
message
stdlib
func fatalError(_ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) -> Never
The String() is not working in our case
String()
thanx, fixed.
The
fatalError
-function doesn't support the common callfatalError()
as seen in Swift projectsNow I have to admit I tried to solve this but couldn't see a good solution as
message
is a closure and in Swift'sstdlib
defined as:func fatalError(_ message: @autoclosure () -> String = String(), file: StaticString = #file, line: UInt = #line) -> Never
The
String()
is not working in our case