<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">You said your issue only existed in Swift 3. However, you issue still exists in Xcode 7.3.1, which uses Swift 2.2. I tested your playground code.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default"><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="color:rgb(0,84,147)">protocol</span> QueryRow {</div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"> <span style="color:rgb(0,84,147)">var</span> key: <span style="color:rgb(0,84,147)">Any</span> { <span style="color:rgb(0,84,147)">get</span> }</div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"> <span style="color:rgb(0,84,147)">func</span> key(at index: <span style="color:rgb(112,61,170)">UInt</span>) -> <span style="color:rgb(0,84,147)">Any</span>?</div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">}</div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;color:rgb(52,56,146)"><span style="color:rgb(0,84,147)">var</span><span style="color:rgb(0,0,0)"> row: </span>QueryRow</div></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo;min-height:13px"><br></div></div><div><div style="font-size:11px;font-family:menlo;margin:0px;line-height:normal;color:rgb(112,61,170)"><span style="color:rgb(129,65,0)">row</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(52,56,146)">key</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,84,147)">as</span><span style="color:rgb(0,0,0)">? </span>String</div><div style="font-size:11px;font-family:menlo;margin:0px;line-height:normal;color:rgb(112,61,170)"><br></div><div style="margin:0px;line-height:normal"><font face="georgia, serif" color="#000000">Zhaoxin</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 14, 2016 at 7:08 AM, Jens Alfke via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Sep 13, 2016, at 3:13 PM, Hooman Mehr <<a href="mailto:hooman@mac.com" target="_blank">hooman@mac.com</a>> wrote:</div><br><div><span style="font-family:Alegreya-Regular;font-size:15px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">I guess the reason this is happening is some attempt at backward compatibility, but this is clearly causing a serious bug. Have you reported it?</span></div></blockquote></div><br></span><div>No; I’m not a Swift expert, and am not following the 3.0 transition closely enough to tell whether this is a bug or just some unfortunate but intentional fallout from the transition.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>—Jens</div></font></span></div><br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>