mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
737 B
Plaintext
20 lines
737 B
Plaintext
//// [tests/cases/compiler/functionCall18.ts] ////
|
|
|
|
=== functionCall18.ts ===
|
|
// Repro from #26835
|
|
declare function foo<T>(a: T, b: T);
|
|
>foo : Symbol(foo, Decl(functionCall18.ts, 0, 0), Decl(functionCall18.ts, 1, 36))
|
|
>T : Symbol(T, Decl(functionCall18.ts, 1, 21))
|
|
>a : Symbol(a, Decl(functionCall18.ts, 1, 24))
|
|
>T : Symbol(T, Decl(functionCall18.ts, 1, 21))
|
|
>b : Symbol(b, Decl(functionCall18.ts, 1, 29))
|
|
>T : Symbol(T, Decl(functionCall18.ts, 1, 21))
|
|
|
|
declare function foo(a: {});
|
|
>foo : Symbol(foo, Decl(functionCall18.ts, 0, 0), Decl(functionCall18.ts, 1, 36))
|
|
>a : Symbol(a, Decl(functionCall18.ts, 2, 21))
|
|
|
|
foo<string>("hello");
|
|
>foo : Symbol(foo, Decl(functionCall18.ts, 0, 0), Decl(functionCall18.ts, 1, 36))
|
|
|