Files
tsgo/testdata/baselines/reference/compiler/catchClauseRestProperties.errors.txt
fce6206f8e Fix panic for rest properties in catch binding when targeting ES2017 (#3927)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-05-18 12:16:40 +00:00

12 lines
328 B
Plaintext

catchClauseRestProperties.ts(3,15): error TS2700: Rest types may only be created from object types.
==== catchClauseRestProperties.ts (1 errors) ====
try {
// ...
} catch ({ ...rest }) {
~~~~
!!! error TS2700: Rest types may only be created from object types.
// ...
}