2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/ambientModuleExports.ts ===
|
|
|
|
declare module Foo {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Foo : typeof Foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
function a():void;
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b:number;
|
|
|
|
>b : number
|
|
|
|
|
|
|
|
class C {}
|
|
|
|
>C : C
|
|
|
|
}
|
|
|
|
|
|
|
|
Foo.a();
|
|
|
|
>Foo.a() : void
|
2014-08-28 21:52:44 +02:00
|
|
|
>Foo.a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>Foo : typeof Foo
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Foo.b;
|
|
|
|
>Foo.b : number
|
|
|
|
>Foo : typeof Foo
|
|
|
|
>b : number
|
|
|
|
|
|
|
|
var c = new Foo.C();
|
2014-08-25 19:36:12 +02:00
|
|
|
>c : Foo.C
|
|
|
|
>new Foo.C() : Foo.C
|
|
|
|
>Foo.C : typeof Foo.C
|
2014-08-15 23:33:16 +02:00
|
|
|
>Foo : typeof Foo
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : typeof Foo.C
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
declare module Foo2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Foo2 : typeof Foo2
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export function a(): void;
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var b: number;
|
|
|
|
>b : number
|
|
|
|
|
|
|
|
export class C { }
|
|
|
|
>C : C
|
|
|
|
}
|
|
|
|
|
|
|
|
Foo2.a();
|
|
|
|
>Foo2.a() : void
|
2014-08-28 21:52:44 +02:00
|
|
|
>Foo2.a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>Foo2 : typeof Foo2
|
2014-08-28 21:52:44 +02:00
|
|
|
>a : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
Foo2.b;
|
|
|
|
>Foo2.b : number
|
|
|
|
>Foo2 : typeof Foo2
|
|
|
|
>b : number
|
|
|
|
|
|
|
|
var c2 = new Foo2.C();
|
2014-08-25 19:36:12 +02:00
|
|
|
>c2 : Foo2.C
|
|
|
|
>new Foo2.C() : Foo2.C
|
|
|
|
>Foo2.C : typeof Foo2.C
|
2014-08-15 23:33:16 +02:00
|
|
|
>Foo2 : typeof Foo2
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : typeof Foo2.C
|
2014-08-15 23:33:16 +02:00
|
|
|
|