[swift-users] ranges and min

Wagner Truppel trupwl at gmail.com
Mon Jan 23 09:12:45 CST 2017


Is it possible that the enclosing scope exposes a definition of min that might take precedence over Swift.min unless you namespace the invocation?

> On 23 Jan 2017, at 14:58, J.E. Schotsman via swift-users <swift-users at swift.org> wrote:
> 
> This doesn’t compile:
> 
> let data1 = Data(count:4)
> let data2 = Data(count:5)
> for i in 0..<min( data1.count, data2.count ) {..} // ! “extra argument in call"
> 
> I have to write
> 
> for i in 0..<Swift.min
> 
> Compiler bug?
> 
> Jan E.
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

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


More information about the swift-users mailing list