-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Describe the bug
This fails to parse, but works fine with TSC: https://www.typescriptlang.org/play/?#code/NwbQhgThYJ4MIHsAONwF0CEAaABJa8yqARpmjgLw4gBQO9eUsiKIp2dD+zR6HaNIA
Input code
;[arrayCopy[currentIndex]!, arrayCopy[randomIndex]!] = [
arrayCopy[randomIndex]!,
arrayCopy[currentIndex]!,
]
Config
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"target": "es5",
"loose": false,
"minify": {
"compress": false,
"mangle": false
}
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true
}
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
[arrayCopy[a], arrayCopy[b]] = [
arrayCopy[b],
arrayCopy[a],
];
Actual behavior
fails to parse
Version
1.13.20
Additional context
No response