mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
367 B
TypeScript
19 lines
367 B
TypeScript
//// [tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts] ////
|
|
|
|
//// [arityErrorRelatedSpanBindingPattern.ts]
|
|
function foo(a, b, {c}): void {}
|
|
|
|
function bar(a, b, [c]): void {}
|
|
|
|
foo("", 0);
|
|
|
|
bar("", 0);
|
|
|
|
|
|
//// [arityErrorRelatedSpanBindingPattern.js]
|
|
"use strict";
|
|
function foo(a, b, { c }) { }
|
|
function bar(a, b, [c]) { }
|
|
foo("", 0);
|
|
bar("", 0);
|