[swift-evolution] [Discussion] Generic protocols

Adrian Zubarev adrian.zubarev at devandartist.com
Sat Dec 3 08:30:35 CST 2016


If I’m not mistaken here, extension Foo where T == Int will have an error of redeclaration foo anyways.


-- 
Adrian Zubarev
Sent with Airmail

Am 3. Dezember 2016 um 15:22:56, Adrian Zubarev (adrian.zubarev at devandartist.com) schrieb:

extension Foo where T == Int {
     func foo() {
          self.bar(o: 42) // calls a function that accepts an Int
     }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161203/8ae2741f/attachment.html>


More information about the swift-evolution mailing list