mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow a form of 'case is T' that matches the cast result to a subpattern, 'case <pattern> as T'. This exposes an issue in switch destructuring with casting into complex class hierarchies <rdar://problem/16401831> but works for common cases. Swift SVN r15396
23 KiB
23 KiB