mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
13 lines
273 B
TypeScript
13 lines
273 B
TypeScript
|
// @target: es5, es2015, esnext
|
||
|
// @noEmit: true
|
||
|
// @noTypesAndSymbols: true
|
||
|
|
||
|
// https://github.com/microsoft/TypeScript/issues/38243
|
||
|
|
||
|
function test0({ a = 0, b = a } = {}) {
|
||
|
return { a, b };
|
||
|
}
|
||
|
|
||
|
function test1({ c: { a = 0, b = a } = {} } = {}) {
|
||
|
return { a, b };
|
||
|
}
|