2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_1.ts ===
|
|
|
|
///<reference path='ambientExternalModuleWithInternalImportDeclaration_0.ts'/>
|
|
|
|
import A = require('M');
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var c = new A();
|
2014-08-25 19:36:12 +02:00
|
|
|
>c : A
|
|
|
|
>new A() : A
|
|
|
|
>A : typeof A
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
|
|
|
|
declare module 'M' {
|
|
|
|
module C {
|
2014-08-28 21:40:58 +02:00
|
|
|
>C : typeof X
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var f: number;
|
|
|
|
>f : number
|
|
|
|
}
|
|
|
|
class C {
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : X
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
foo(): void;
|
|
|
|
>foo : () => void
|
|
|
|
}
|
|
|
|
import X = C;
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : typeof X
|
2014-08-25 19:36:12 +02:00
|
|
|
>C : X
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export = X;
|
2014-08-25 19:36:12 +02:00
|
|
|
>X : X
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|