Doug Gregor
1c484d91a0
Allow bridging "as" patterns in switch cases <rdar://problem/17408934>.
...
We now allow switches like this:
switch anyObject {
case let str as String: // bridged via NSString
println(str)
case let intArr as [Int]: // bridged via NSArray
println(intArr)
default:
}
Note that we do not allow collection downcasting in switch statements
(yet); that's covered by <rdar://problem/17897378>.
Swift SVN r20976
2014-08-03 19:58:49 +00:00
..
2014-07-23 11:01:51 +00:00
2014-07-22 02:45:46 +00:00
2014-05-12 22:01:52 +00:00
2014-07-16 22:13:29 +00:00
2014-07-23 06:29:23 +00:00
2014-07-24 15:38:33 +00:00
2014-07-07 22:42:11 +00:00
2014-06-13 23:07:10 +00:00
2014-07-31 19:23:08 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-07-30 11:24:11 +00:00
2014-07-12 17:29:57 +00:00
2014-07-08 20:17:35 +00:00
2014-07-10 06:23:27 +00:00
2014-07-24 13:07:12 +00:00
2014-06-09 20:18:58 +00:00
2014-05-22 06:15:29 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 23:01:20 +00:00
2014-05-16 07:27:54 +00:00
2014-07-23 22:59:27 +00:00
2014-07-09 16:57:35 +00:00
2014-07-30 13:08:11 +00:00
2014-07-19 05:14:06 +00:00
2014-07-19 01:52:08 +00:00
2014-07-24 15:38:33 +00:00
2014-07-30 11:53:38 +00:00
2014-07-11 18:48:55 +00:00
2014-07-24 01:12:59 +00:00
2014-08-03 05:22:01 +00:00
2014-07-28 19:20:39 +00:00
2014-05-12 22:01:52 +00:00
2014-07-28 19:20:42 +00:00
2014-06-16 09:07:00 +00:00
2014-06-17 01:15:48 +00:00
2014-05-22 06:15:29 +00:00
2014-07-22 04:42:47 +00:00
2014-07-22 16:56:23 +00:00
2014-08-01 05:19:28 +00:00
2014-05-12 22:01:52 +00:00
2014-07-01 23:27:44 +00:00
2014-07-29 23:24:36 +00:00
2014-08-03 19:58:49 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-08-02 02:20:17 +00:00
2014-06-13 22:58:46 +00:00