Files
swift-mirror/test/Interpreter/SDK
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-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00
2014-05-12 22:01:52 +00:00