TypeScript/tests/baselines/reference/es6ImportEqualsDeclaration2.js
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

24 lines
428 B
TypeScript

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