24 lines
1,014 B
Text
24 lines
1,014 B
Text
=== tests/cases/compiler/undefinedArgumentInference.ts ===
|
|
function foo1<T>(f1: { x: T; y: T }): T {
|
|
>foo1 : Symbol(foo1, Decl(undefinedArgumentInference.ts, 0, 0))
|
|
>T : Symbol(T, Decl(undefinedArgumentInference.ts, 0, 14))
|
|
>f1 : Symbol(f1, Decl(undefinedArgumentInference.ts, 0, 17))
|
|
>x : Symbol(x, Decl(undefinedArgumentInference.ts, 0, 22))
|
|
>T : Symbol(T, Decl(undefinedArgumentInference.ts, 0, 14))
|
|
>y : Symbol(y, Decl(undefinedArgumentInference.ts, 0, 28))
|
|
>T : Symbol(T, Decl(undefinedArgumentInference.ts, 0, 14))
|
|
>T : Symbol(T, Decl(undefinedArgumentInference.ts, 0, 14))
|
|
|
|
return undefined;
|
|
>undefined : Symbol(undefined)
|
|
|
|
}
|
|
|
|
var z1 = foo1({ x: undefined, y: undefined });
|
|
>z1 : Symbol(z1, Decl(undefinedArgumentInference.ts, 6, 3))
|
|
>foo1 : Symbol(foo1, Decl(undefinedArgumentInference.ts, 0, 0))
|
|
>x : Symbol(x, Decl(undefinedArgumentInference.ts, 6, 15))
|
|
>undefined : Symbol(undefined)
|
|
>y : Symbol(y, Decl(undefinedArgumentInference.ts, 6, 29))
|
|
>undefined : Symbol(undefined)
|
|
|