1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
=== tests/cases/compiler/genericLambaArgWithoutTypeArguments.ts ===
interface Foo<T> {
>Foo : Symbol(Foo, Decl(genericLambaArgWithoutTypeArguments.ts, 0, 0))
>T : Symbol(T, Decl(genericLambaArgWithoutTypeArguments.ts, 0, 14))
x: T;
>x : Symbol(Foo.x, Decl(genericLambaArgWithoutTypeArguments.ts, 0, 18))
>T : Symbol(T, Decl(genericLambaArgWithoutTypeArguments.ts, 0, 14))
}
function foo(a) {
>foo : Symbol(foo, Decl(genericLambaArgWithoutTypeArguments.ts, 2, 1))
>a : Symbol(a, Decl(genericLambaArgWithoutTypeArguments.ts, 3, 13))
return null;
}
foo((arg: Foo) => { return arg.x; });
>foo : Symbol(foo, Decl(genericLambaArgWithoutTypeArguments.ts, 2, 1))
>arg : Symbol(arg, Decl(genericLambaArgWithoutTypeArguments.ts, 6, 5))
>Foo : Symbol(Foo, Decl(genericLambaArgWithoutTypeArguments.ts, 0, 0))
>arg : Symbol(arg, Decl(genericLambaArgWithoutTypeArguments.ts, 6, 5))
|