mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
929 B
Plaintext
22 lines
929 B
Plaintext
//// [tests/cases/compiler/arityErrorRelatedSpanBindingPattern.ts] ////
|
|
|
|
=== 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))
|
|
|