|
| 1 | +=== tests/cases/compiler/trivialSubtypeReductionNoStructuralCheck2.ts === |
| 2 | +declare const props: WizardStepProps; |
| 3 | +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 13)) |
| 4 | +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) |
| 5 | + |
| 6 | +export class Wizard { |
| 7 | +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) |
| 8 | + |
| 9 | + get steps() { |
| 10 | +>steps : Symbol(Wizard.steps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 1, 21)) |
| 11 | + |
| 12 | + return { |
| 13 | + wizard: this as Wizard, |
| 14 | +>wizard : Symbol(wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 3, 12)) |
| 15 | +>this : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) |
| 16 | +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) |
| 17 | + |
| 18 | + ...props, |
| 19 | +>props : Symbol(props, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 13)) |
| 20 | + |
| 21 | + } as WizardStepProps; |
| 22 | +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) |
| 23 | + } |
| 24 | +} |
| 25 | + |
| 26 | +export interface WizardStepProps { |
| 27 | +>WizardStepProps : Symbol(WizardStepProps, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 8, 1)) |
| 28 | + |
| 29 | + wizard?: Wizard; |
| 30 | +>wizard : Symbol(WizardStepProps.wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 10, 34)) |
| 31 | +>Wizard : Symbol(Wizard, Decl(trivialSubtypeReductionNoStructuralCheck2.ts, 0, 37)) |
| 32 | +} |
0 commit comments