mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
68d76afe5d
**Related issue:** - Closes https://github.com/swc-project/swc/issues/6589.
22 lines
231 B
TypeScript
22 lines
231 B
TypeScript
export function func({
|
|
a,
|
|
b,
|
|
...rest
|
|
}: {
|
|
a: string,
|
|
b: string,
|
|
}) {
|
|
console.log(a,b, rest)
|
|
}
|
|
|
|
const other = { unknow: "foo" }
|
|
|
|
let foo = {
|
|
...other,
|
|
bar: "baz"
|
|
};
|
|
let bar = {
|
|
bar: "baz",
|
|
...other
|
|
};
|