55 lines
958 B
Text
55 lines
958 B
Text
=== tests/cases/compiler/augmentedTypesModules3b.ts ===
|
|
class m3b { foo() { } }
|
|
>m3b : m3b
|
|
>foo : () => void
|
|
|
|
module m3b { var y = 2; }
|
|
>m3b : typeof m3b
|
|
>y : number
|
|
>2 : number
|
|
|
|
class m3c { foo() { } }
|
|
>m3c : m3c
|
|
>foo : () => void
|
|
|
|
module m3c { export var y = 2; }
|
|
>m3c : typeof m3c
|
|
>y : number
|
|
>2 : number
|
|
|
|
declare class m3d { foo(): void }
|
|
>m3d : m3d
|
|
>foo : () => void
|
|
|
|
module m3d { export var y = 2; }
|
|
>m3d : typeof m3d
|
|
>y : number
|
|
>2 : number
|
|
|
|
module m3e { export var y = 2; }
|
|
>m3e : typeof m3e
|
|
>y : number
|
|
>2 : number
|
|
|
|
declare class m3e { foo(): void }
|
|
>m3e : m3e
|
|
>foo : () => void
|
|
|
|
declare class m3f { foo(): void }
|
|
>m3f : m3f
|
|
>foo : () => void
|
|
|
|
module m3f { export interface I { foo(): void } }
|
|
>m3f : typeof m3f
|
|
>I : I
|
|
>foo : () => void
|
|
|
|
declare class m3g { foo(): void }
|
|
>m3g : m3g
|
|
>foo : () => void
|
|
|
|
module m3g { export class C { foo() { } } }
|
|
>m3g : typeof m3g
|
|
>C : C
|
|
>foo : () => void
|
|
|