TypeScript/tests/baselines/reference/moduleReopenedTypeOtherBlock.types
2015-04-13 14:29:37 -07:00

22 lines
866 B
Plaintext

=== 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
}