I think you can accomplish this with "case let x: precondition(x == 1), or am I missing something? <br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 13, 2016 at 7:39 AM Amir Michail via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Example:<br>
<br>
switch random() % 2 {<br>
case 0:<br>
…<br>
default: precondition(switchValue == 1)<br>
...<br>
}<br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div><div dir="ltr">-- <br></div>Javier Soto