<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Ok, I created an issue: <a href="https://bugs.swift.org/browse/SR-2135" class="">https://bugs.swift.org/browse/SR-2135</a>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="font-family: 'Segoe UI', Helvetica, Arial, sans-serif; margin: 0px;" class="">
<div style="margin: 0px;" class=""><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif', sans-serif;" class="">lg,</span></div>
<div style="margin: 0px;" class=""><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif', sans-serif;" class="">Fabian Ehrentraud</span></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="1" class=""><span lang="de-AT" style="font-size: 8pt;" class="">Mobile Developer</span></font></span></font></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="2" class=""><span lang="de-AT" style="font-size: 10pt;" class="">____________________________________</span></font></span></font></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font size="2" class=""><span lang="de-AT" style="font-size: 10pt;" class=""> </span></font></span></font></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="2" class=""><span lang="de-AT" style="font-size: 10pt;" class="">willhaben internet
service GmbH & Co KG</span></font></span></font></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="2" class=""><span lang="de-AT" style="font-size: 10pt;" class="">Landstraßer Hauptstraße
97-101, 1030 Wien</span></font></span></font></div>
<div style="margin: 0px;" class=""><span style="font-size: 10pt; font-family: 'Microsoft Sans Serif', sans-serif;" class="">M +43 699 1003 1604</span></div>
<div style="margin: 0px;" class=""><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif', sans-serif;" class=""><br class="">
</span></div>
<div style="margin: 0px;" class=""><span style="font-size: 7pt; font-family: 'Microsoft Sans Serif', sans-serif;" class="">DVR 4011331</span></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="1" class=""><span lang="de-AT" style="font-size: 7pt;" class="">Firmenbuch Nr. FN
271792 w</span></font></span></font></div>
<div style="margin: 0px;" class=""><font face="Calibri,sans-serif" size="2" class=""><span style="font-size: 11pt;" class=""><font face="Microsoft Sans Serif,sans-serif" size="1" class=""><span lang="de-AT" style="font-size: 7pt;" class="">Gerichtsstand Handelsgericht
Wien</span></font><font face="Microsoft Sans Serif,sans-serif" size="1" class=""><span lang="de-AT" style="font-size: 7pt;" class=""><br class="">
UID Nr. ATU62251468</span></font></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">On 20.07.2016, at 12:07, Zhao Xin <<a href="mailto:owenzx@gmail.com" class="">owenzx@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_default" style="font-family:georgia,serif">I think this should consider as a bug because the Xcode editor suggests the second way but the compiler can't compile.</div>
<div class="gmail_default" style="font-family:georgia,serif"><br class="">
</div>
<div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Jul 20, 2016 at 4:08 PM, Fabian Ehrentraud via swift-evolution
<span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br class="">
<br class="">
I have a problem with tuple parameter types in a closure. Is this a language restriction or a bug in the Swift compiler? I used the Swift shipped with Xcode beta 3, also tried in Swift 2.2.<br class="">
<br class="">
let d: [Int: String] = [1:"1", 0:"0"]<br class="">
let e = d.sorted(isOrderedBefore: { e1, e2 in e1.0 < e2.0 }) // works<br class="">
let f = d.sorted(isOrderedBefore: { (k1, v1), (k2, v2) in k1 < k2 }) // does not compile<br class="">
<br class="">
<br class="">
Best,<br class="">
Fabian<br class="">
_______________________________________________<br class="">
swift-evolution mailing list<br class="">
<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>