TypeScript/tests/baselines/reference/es6ImportEqualsDeclaration2.symbols
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
661 B
Plaintext

=== tests/cases/compiler/server.d.ts ===
declare module "other" {
export class C { }
>C : Symbol(C, Decl(server.d.ts, 1, 24))
}
declare module "server" {
import events = require("other"); // Ambient declaration, no error expected.
>events : Symbol(events, Decl(server.d.ts, 5, 25))
module S {
>S : Symbol(S, Decl(server.d.ts, 6, 37))
export var a: number;
>a : Symbol(a, Decl(server.d.ts, 9, 18))
}
export = S; // Ambient declaration, no error expected.
>S : Symbol(S, Decl(server.d.ts, 6, 37))
}
=== tests/cases/compiler/client.ts ===
import {a} from "server";
>a : Symbol(a, Decl(client.ts, 0, 8))