|
| 1 | +=== tests/cases/compiler/unionTypeWithRecursiveSubtypeReduction.ts === |
| 2 | +class Module { |
| 3 | +>Module : Symbol(Module, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 0)) |
| 4 | + |
| 5 | + public members: Class[]; |
| 6 | +>members : Symbol(members, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 14)) |
| 7 | +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) |
| 8 | +} |
| 9 | + |
| 10 | +class Namespace { |
| 11 | +>Namespace : Symbol(Namespace, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 2, 1)) |
| 12 | + |
| 13 | + public members: (Class | Property)[]; |
| 14 | +>members : Symbol(members, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 4, 17)) |
| 15 | +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) |
| 16 | +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) |
| 17 | +} |
| 18 | + |
| 19 | +class Class { |
| 20 | +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) |
| 21 | + |
| 22 | + public parent: Namespace; |
| 23 | +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13)) |
| 24 | +>Namespace : Symbol(Namespace, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 2, 1)) |
| 25 | +} |
| 26 | + |
| 27 | +class Property { |
| 28 | +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) |
| 29 | + |
| 30 | + public parent: Module | Class; |
| 31 | +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) |
| 32 | +>Module : Symbol(Module, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 0, 0)) |
| 33 | +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) |
| 34 | +} |
| 35 | + |
| 36 | +var t: Class | Property; |
| 37 | +>t : Symbol(t, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 16, 3)) |
| 38 | +>Class : Symbol(Class, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 6, 1)) |
| 39 | +>Property : Symbol(Property, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 10, 1)) |
| 40 | + |
| 41 | +t.parent; |
| 42 | +>t.parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13), Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) |
| 43 | +>t : Symbol(t, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 16, 3)) |
| 44 | +>parent : Symbol(parent, Decl(unionTypeWithRecursiveSubtypeReduction.ts, 8, 13), Decl(unionTypeWithRecursiveSubtypeReduction.ts, 12, 16)) |
| 45 | + |
0 commit comments