TypeScript/tests/cases/compiler/sliceResultCast.ts
Wesley Wigham 3ab6809e38
Consider identical instances of the same symbol equivalent when creating union and intersection properties (#43560)
* Consider identical instances of the same symbol equivalent when creating union and intersection properties

* Also copy over mapper and type (if available) on cloned symbols

* Editorial feedback
2021-04-14 16:55:45 -07:00

3 lines
95 B
TypeScript

declare var x: [number, string] | [number, string, string];
x.slice(1) as readonly string[];