[swift-users] Mysterious “Will never be executed” warning

Rudolf Adamkovič salutis at me.com
Fri Jun 2 10:48:35 CDT 2017

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 {

Yet another compiler bug?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170602/4d43a1d2/attachment.html>

More information about the swift-users mailing list