mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Adding test
This commit is contained in:
parent
546da60a2a
commit
27380f40dc
@ -33,6 +33,14 @@ f6({ x: 1 });
|
||||
f6({ y: 1 });
|
||||
f6({ x: 1, y: 1 });
|
||||
|
||||
// (arg?: { a: { x?: number, y?: number } }) => void
|
||||
function f7({ a: { x = 0, y = 0 } } = { a: {} }) { }
|
||||
f7();
|
||||
f7({ a: {} });
|
||||
f7({ a: { x: 1 } });
|
||||
f7({ a: { y: 1 } });
|
||||
f7({ a: { x: 1, y: 1 } });
|
||||
|
||||
// (arg: [any, any]) => void
|
||||
function g1([x, y]) { }
|
||||
g1([1, 1]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user