mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
17 lines
275 B
TypeScript
17 lines
275 B
TypeScript
// @target: es5, es2015, esnext
|
|
// @noEmit: true
|
|
// @noTypesAndSymbols: true
|
|
|
|
// https://github.com/microsoft/TypeScript/issues/36295
|
|
|
|
function a(): any {}
|
|
|
|
function b({ b = a(), ...x } = a()) {
|
|
var a;
|
|
}
|
|
|
|
const x = "";
|
|
|
|
function c({ b, ...c } = a(), d = x) {
|
|
var x;
|
|
} |