|
| 1 | +=== tests/cases/compiler/intersectionOfIdenticalTypesNotComplex.ts === |
| 2 | +// Just a short block to make a union with > 300 unique members |
| 3 | +export type Bit = 0 | 1; |
| 4 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 5 | + |
| 6 | +export type SyntaxKind = `${Bit}${Bit}${Bit}${Bit}${Bit}${Bit}${Bit}${Bit}${Bit}` |
| 7 | +>SyntaxKind : Symbol(SyntaxKind, Decl(intersectionOfIdenticalTypesNotComplex.ts, 1, 24)) |
| 8 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 9 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 10 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 11 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 12 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 13 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 14 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 15 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 16 | +>Bit : Symbol(Bit, Decl(intersectionOfIdenticalTypesNotComplex.ts, 0, 0)) |
| 17 | + |
| 18 | +type NodeMaker<T extends SyntaxKind = SyntaxKind> = T extends T ? {kind: T}: never; |
| 19 | +>NodeMaker : Symbol(NodeMaker, Decl(intersectionOfIdenticalTypesNotComplex.ts, 2, 81)) |
| 20 | +>T : Symbol(T, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 15)) |
| 21 | +>SyntaxKind : Symbol(SyntaxKind, Decl(intersectionOfIdenticalTypesNotComplex.ts, 1, 24)) |
| 22 | +>SyntaxKind : Symbol(SyntaxKind, Decl(intersectionOfIdenticalTypesNotComplex.ts, 1, 24)) |
| 23 | +>T : Symbol(T, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 15)) |
| 24 | +>T : Symbol(T, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 15)) |
| 25 | +>kind : Symbol(kind, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 67)) |
| 26 | +>T : Symbol(T, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 15)) |
| 27 | + |
| 28 | +type Node = NodeMaker; |
| 29 | +>Node : Symbol(Node, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 83)) |
| 30 | +>NodeMaker : Symbol(NodeMaker, Decl(intersectionOfIdenticalTypesNotComplex.ts, 2, 81)) |
| 31 | + |
| 32 | +type Ok = Node & Node; |
| 33 | +>Ok : Symbol(Ok, Decl(intersectionOfIdenticalTypesNotComplex.ts, 5, 22)) |
| 34 | +>Node : Symbol(Node, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 83)) |
| 35 | +>Node : Symbol(Node, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 83)) |
| 36 | + |
| 37 | +type Node2 = NodeMaker; |
| 38 | +>Node2 : Symbol(Node2, Decl(intersectionOfIdenticalTypesNotComplex.ts, 6, 22)) |
| 39 | +>NodeMaker : Symbol(NodeMaker, Decl(intersectionOfIdenticalTypesNotComplex.ts, 2, 81)) |
| 40 | + |
| 41 | +type Wat = Node & Node2; |
| 42 | +>Wat : Symbol(Wat, Decl(intersectionOfIdenticalTypesNotComplex.ts, 8, 23)) |
| 43 | +>Node : Symbol(Node, Decl(intersectionOfIdenticalTypesNotComplex.ts, 3, 83)) |
| 44 | +>Node2 : Symbol(Node2, Decl(intersectionOfIdenticalTypesNotComplex.ts, 6, 22)) |
| 45 | + |
0 commit comments