[swift-evolution] [Draft Proposal] Improve protocol inheritance behaviour

Nevin Brackett-Rozinsky nevin.brackettrozinsky at gmail.com
Mon Mar 13 17:12:04 CDT 2017

Also, you don’t have to go through a superclass method to see the
problematic behavior. You can simply use a subclass instance in a variable
of superclass type:

let subclass: MyClass = MySubclass()
// Prints “The 'DEFAULT' 2nd method”

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170313/19afcf0b/attachment-0001.html>

More information about the swift-evolution mailing list