TypeScript/tests/baselines/reference/ambientExternalModuleWithInternalImportDeclaration.types
2015-04-15 16:44:20 -07:00

34 lines
607 B
Plaintext

=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_1.ts ===
///<reference path='ambientExternalModuleWithInternalImportDeclaration_0.ts'/>
import A = require('M');
>A : typeof A
var c = new A();
>c : A
>new A() : A
>A : typeof A
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
declare module 'M' {
module C {
>C : typeof C
export var f: number;
>f : number
}
class C {
>C : C
foo(): void;
>foo : () => void
}
import X = C;
>X : typeof C
>C : C
export = X;
>X : C
}