[swift-evolution] if case 1, 2, 3 = x { ... } results in error in swift 2

Adrian Kashivskyy adrian.kashivskyy at me.com
Thu Dec 3 18:47:21 CST 2015


IIRC multiple case patterns in `if-case` are not yet supported due to compiler limitations.

Pozdrawiam – Regards,
Adrian Kashivskyy

> Wiadomość napisana przez Amir Michail <a.michail at me.com> w dniu 04.12.2015, o godz. 01:40:
> 
> But "if case 1...3 = x { ... }" works.
> 
> Why?
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151204/1d47dcf3/attachment.html>


More information about the swift-evolution mailing list