TypeScript/tests/baselines/reference/moduleReopenedTypeOtherBlock.types

21 lines
836 B
Text

=== tests/cases/compiler/moduleReopenedTypeOtherBlock.ts ===
module M {
>M : typeof M, Symbol(M,Decl(moduleReopenedTypeOtherBlock.ts,0,0),Decl(moduleReopenedTypeOtherBlock.ts,3,1))
export class C1 { }
>C1 : C1, Symbol(C1,Decl(moduleReopenedTypeOtherBlock.ts,0,10))
export interface I { n: number; }
>I : I, Symbol(I,Decl(moduleReopenedTypeOtherBlock.ts,1,23))
>n : number, Symbol(n,Decl(moduleReopenedTypeOtherBlock.ts,2,24))
}
module M {
>M : typeof M, Symbol(M,Decl(moduleReopenedTypeOtherBlock.ts,0,0),Decl(moduleReopenedTypeOtherBlock.ts,3,1))
export class C2 { f(): I { return null; } }
>C2 : C2, Symbol(C2,Decl(moduleReopenedTypeOtherBlock.ts,4,10))
>f : () => I, Symbol(f,Decl(moduleReopenedTypeOtherBlock.ts,5,21))
>I : I, Symbol(I,Decl(moduleReopenedTypeOtherBlock.ts,1,23))
>null : null
}