TypeScript/tests/baselines/reference/importNonStringLiteral.errors.txt
Cyrus Najmabadi ada6cebef3 Don't parse nodes, only to not include them in the tree. This will break incremental parsing scenarios.
Properly store the data for an external module reference in the AST.
2014-12-01 03:00:27 -08:00

9 lines
347 B
Plaintext

tests/cases/conformance/externalModules/importNonStringLiteral.ts(2,22): error TS1141: String literal expected.
==== tests/cases/conformance/externalModules/importNonStringLiteral.ts (1 errors) ====
var x = "filename";
import foo = require(x); // invalid
~
!!! error TS1141: String literal expected.