We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f476bf commit 9203f95Copy full SHA for 9203f95
src/compiler/checker.ts
@@ -24680,7 +24680,7 @@ namespace ts {
24680
24681
// see: parseArgumentOrArrayLiteralElement...we use this function which parse arguments of callExpression to parse specifier for dynamic import.
24682
// parseArgumentOrArrayLiteralElement allows spread element to be in an argument list which is not allowed as specifier in dynamic import.
24683
- if (isSpreadExpression(arguments[0])) {
+ if (isSpreadElement(arguments[0])) {
24684
return grammarErrorOnNode(arguments[0], Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element);
24685
}
24686
0 commit comments