<div dir="ltr">e<div class="gmail_default" style="font-family:georgia,serif;display:inline">​num should be case-sensitive. If you find it otherwise, you should file a bug.</div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">Zhaoxin</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 22, 2016 at 5:48 AM, Stéphane Lizeray <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</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"><div>Hello,</div><div><br></div>The following enum<div><br></div><div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span style="color:#0433ff">enum</span><span> X {</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span></span><br></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap">        </span></span><span style="color:#0433ff">case</span><span> A_B</span></div><p style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span><span style="white-space:pre-wrap">        </span></span><br></p><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>}</span></div></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span>is translated to:</span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;font-size:13px;line-height:normal;font-family:Menlo"><span><div style="margin:0px;line-height:normal"><span style="color:#0433ff">enum</span><span> X {</span></div><div style="margin:0px;line-height:normal;min-height:15px"><span></span><br></div><div style="margin:0px;line-height:normal"><span><span style="white-space:pre-wrap">        </span></span><span style="color:#0433ff">case</span><span> a_b</span></div><p style="margin:0px;line-height:normal;min-height:15px"><span><span style="white-space:pre-wrap">        </span></span><br></p><div style="margin:0px;line-height:normal"><span>}</span></div><div><span><br></span></div><div><span>which is fine.</span></div><div><span><br></span></div><div><span>But:</span></div><div><span><br></span></div><div><span><div style="margin:0px;line-height:normal"><span style="color:#0433ff">enum</span><span> X {</span></div><div style="margin:0px;line-height:normal;min-height:15px"><span></span><br></div><div style="margin:0px;line-height:normal"><span><span style="white-space:pre-wrap">        </span></span><span style="color:#0433ff">case</span><span> AXX_BYY</span></div><p style="margin:0px;line-height:normal;min-height:15px"><span><span style="white-space:pre-wrap">        </span></span><br></p><div style="margin:0px;line-height:normal"><span>}</span></div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span>is migrated to:</span></div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span><div style="margin:0px;line-height:normal"><span style="color:#0433ff">enum</span><span> X {</span></div><div style="margin:0px;line-height:normal;min-height:15px"><span></span><br></div><div style="margin:0px;line-height:normal"><span><span style="white-space:pre-wrap">        </span></span><span style="color:#0433ff">case</span><span> axx_BYY</span></div><p style="margin:0px;line-height:normal;min-height:15px"><span><span style="white-space:pre-wrap">        </span></span><br></p><div style="margin:0px;line-height:normal"><span>}</span></div><div><span><br></span></div><div><span><br></span></div><div>Shouldn’t it be rather:</div><div><br></div><div><br></div><div><div style="margin:0px;line-height:normal"><span style="color:rgb(4,51,255)">enum</span><span> X {</span></div><div style="margin:0px;line-height:normal;min-height:15px"><span></span><br></div><div style="margin:0px;line-height:normal"><span><span style="white-space:pre-wrap">        </span></span><span style="color:rgb(4,51,255)">case</span><span> axx_byy</span></div><div style="margin:0px;line-height:normal;min-height:15px"><span><span style="white-space:pre-wrap">        </span></span><br></div><div style="margin:0px;line-height:normal"><span>}</span></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">Thanks,</div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">Stéphane</div><div><span><br></span></div></div></span></div></span></div></span></div></div><br>_______________________________________________<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/mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>