[swift-evolution] Overriding protocol default implementation

Anton Zhilin antonyzhilin at gmail.com
Fri Feb 10 14:29:38 CST 2017


I’d even suggest to force final for such methods:

protocol Fooable { }
extension Fooable {//  func foo() { }        // error: must be declared as final
    final func foo() { }  // ok
}

​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170210/5f2d358e/attachment.html>


More information about the swift-evolution mailing list