TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionShouldNotGetParen.ts

11 lines
246 B
TypeScript
Raw Normal View History

2017-07-08 00:53:55 +02:00
// @module: esnext
// @target: es6
// @noImplicitAny: true
const localeName = "zh-CN";
import(`./locales/${localeName}.js`).then(bar => {
let x = bar;
});
import("./locales/" + localeName + ".js").then(bar => {
let x = bar;
});