TypeScript/tests/cases/conformance/dynamicImport/importCallExpressionInScriptContext1.ts
2017-06-05 17:16:29 -07:00

10 lines
263 B
TypeScript

// @module: commonjs
// @target: es6
// @noImplicitAny: false
// @filename: 0.ts
export function foo() { return "foo"; }
// @filename: 1.ts
var p1 = import("./0");
function arguments() { } // this is allow as the file doesn't have implicit "use strict"