TypeScript/tests/cases/compiler/intersectionTypeWithLeadingOperator.ts

7 lines
135 B
TypeScript
Raw Normal View History

2016-11-19 22:30:33 +01:00
type A = & string;
type B =
& { foo: string }
& { bar: number };
type C = [& { foo: 1 } & { bar: 2 }, & { foo: 3 } & { bar: 4 }];