* improve error message TS2307 * add updates missed from merge * update more missed baselines * remove incorrectly re-added test files Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
27 lines
1.7 KiB
Plaintext
27 lines
1.7 KiB
Plaintext
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(5,8): error TS1325: Specifier of dynamic import cannot be spread element.
|
|
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(7,17): error TS1325: Specifier of dynamic import cannot be spread element.
|
|
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(8,12): error TS1324: Dynamic import must have one specifier as an argument.
|
|
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(9,12): error TS1324: Dynamic import must have one specifier as an argument.
|
|
tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts(9,19): error TS2307: Cannot find module 'pathToModule' or its corresponding type declarations.
|
|
|
|
|
|
==== tests/cases/conformance/dynamicImport/importCallExpressionGrammarError.ts (5 errors) ====
|
|
declare function getSpecifier(): string;
|
|
declare var whatToLoad: boolean;
|
|
|
|
var a = ["./0"];
|
|
import(...["PathModule"]);
|
|
~~~~~~~~~~~~~~~~~
|
|
!!! error TS1325: Specifier of dynamic import cannot be spread element.
|
|
|
|
var p1 = import(...a);
|
|
~~~~
|
|
!!! error TS1325: Specifier of dynamic import cannot be spread element.
|
|
const p2 = import();
|
|
~~~~~~~~
|
|
!!! error TS1324: Dynamic import must have one specifier as an argument.
|
|
const p4 = import("pathToModule", "secondModule");
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1324: Dynamic import must have one specifier as an argument.
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2307: Cannot find module 'pathToModule' or its corresponding type declarations. |