8 lines
292 B
Plaintext
8 lines
292 B
Plaintext
==== tests/cases/conformance/externalModules/importNonStringLiteral.ts (2 errors) ====
|
|
var x = "filename";
|
|
import foo = require(x); // invalid
|
|
~
|
|
!!! error TS1141: String literal expected.
|
|
~
|
|
!!! error TS1005: ';' expected.
|
|
|