I'm trying to understand "Will never be executed" warning here:

protocol FatalErrorReporterInterface {

    func fail(_ message: String) -> Never

}

final class FatalErrorReporter: FatalErrorReporterInterface {

    // This line emits "Will never be executed" warning
    func fail(_ message: String) -> Never {
        fatalError(message)
    }

}
Yet another compiler bug?

https://stackoverflow.com/questions/44332850/mysterious-will-never-be-executed-warning

R+
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to