[swift-evolution] Protocol extension function overrides the default value in implementations

Sune Foldager cyano at me.com
Mon Jan 18 11:30:12 CST 2016

Isn’t is just because “equivalent modulo default parameters” ranks lower in overload resolution? That may or may not be on purpose or desired, I don’t really know. As long as it’s documented, I guess.


> On 16 Jan 2016, at 16:06, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
>> is that right or is it a bug?
> It's not a real bug, but I'd call it "unexpected behavior" — and I guess it will be changed sooner or later.
> In the meantime: When you include the extension method in the protocol, everything should be fine.
> Tino
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160118/e833c13c/attachment.html>

More information about the swift-evolution mailing list