TypeScript/tests/baselines/reference/es6ImportEqualsDeclaration2.types
Mohamed Hegazy 7353cfaece Fix #4170, remove error when using import=require syntax in t=ES6 and in ambient context
This is consistent with the behaviour of "export=" in --t=ES6 and in ambient contexts
2015-08-13 14:56:27 -07:00

27 lines
491 B
Plaintext

=== tests/cases/compiler/server.d.ts ===
declare module "other" {
export class C { }
>C : C
}
declare module "server" {
import events = require("other"); // Ambient declaration, no error expected.
>events : typeof events
module S {
>S : typeof S
export var a: number;
>a : number
}
export = S; // Ambient declaration, no error expected.
>S : typeof S
}
=== tests/cases/compiler/client.ts ===
import {a} from "server";
>a : number