1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
=== tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts ===
function foo(a, b, {c}): void {}
>foo : Symbol(foo, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 0))
>a : Symbol(a, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 13))
>b : Symbol(b, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 15))
>c : Symbol(c, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 20))
function bar(a, b, [c]): void {}
>bar : Symbol(bar, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 32))
>a : Symbol(a, Decl(arityErrorRelatedSpanBindingPattern.ts, 2, 13))
>b : Symbol(b, Decl(arityErrorRelatedSpanBindingPattern.ts, 2, 15))
>c : Symbol(c, Decl(arityErrorRelatedSpanBindingPattern.ts, 2, 20))
foo("", 0);
>foo : Symbol(foo, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 0))
bar("", 0);
>bar : Symbol(bar, Decl(arityErrorRelatedSpanBindingPattern.ts, 0, 32))
|