TypeScript/tests/baselines/reference/arraySpreadImportHelpers.errors.txt
Ron Buckton a0c44b26b7
Improve __spreadArray perf, and other fixes related to SpreadElement (#44527)
* Improve __spreadArray perf, fix array packing and trailing omitted expressions

* Ensure __spreadArray is backwards-compatible

* Add signature restriction for __spreadArray

* Added reusable true/false literals
2021-06-11 16:21:55 -07:00

16 lines
861 B
Plaintext

tests/cases/conformance/es6/spread/main.ts(3,15): error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
==== tests/cases/conformance/es6/spread/main.ts (1 errors) ====
export {};
const k = [1, , 2];
const o = [3, ...k, 4];
~~~~
!!! error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
==== tests/cases/conformance/es6/spread/tslib.d.ts (0 errors) ====
// this is a pre-TS4.4 versions of emit helper, which always forced array packing
declare module "tslib" {
function __spreadArray(to: any[], from: any[]): any[];
}