<div dir="ltr">I think an easy answer if I understand the question right is.<div><br></div><div>let a: UInt8 = UInt8.min</div><div>let b = UInt8 = UInt8.max</div><div><br></div><div>for c in a..<b {</div><div> print(c)</div><div>}</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 8, 2016 at 10:27 AM Daniel Strobusch via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
just as a side note, I filed a bug on this some time ago:<br>
<br>
<a href="https://bugs.swift.org/browse/SR-1091" rel="noreferrer" target="_blank">https://bugs.swift.org/browse/SR-1091</a><br>
<br>
so let’s hope, this gets fixed in Swift3. Its really annoying and dangerous because the error is not recovered at compile time.<br>
<br>
Daniel<br>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">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>
</blockquote></div>