> On Jul 7, 2015, at 5:30 PM, Rick Mann <rm...@latencyzero.com> wrote: > > Thanks. I was looking at the Swift reference. The docs seem to be incorrect: > > https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Patterns.html#//apple_ref/swift/grammar/pattern > > "There are two type-casting patterns, the is pattern and the as pattern. Both > type-casting patterns appear only in switch statement case labels."
The power of `case` outside `switch` was increased at some point. It's likely that the documentation has not caught up. You should file a bug report. -- Greg Parker gpar...@apple.com Runtime Wrangler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com