16 lines
585 B
Text
16 lines
585 B
Text
=== tests/cases/conformance/types/tuple/wideningTuples1.ts ===
|
|
declare function foo<T extends [any]>(x: T): T;
|
|
>foo : Symbol(foo, Decl(wideningTuples1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(wideningTuples1.ts, 0, 21))
|
|
>x : Symbol(x, Decl(wideningTuples1.ts, 0, 38))
|
|
>T : Symbol(T, Decl(wideningTuples1.ts, 0, 21))
|
|
>T : Symbol(T, Decl(wideningTuples1.ts, 0, 21))
|
|
|
|
var y = foo([undefined]);
|
|
>y : Symbol(y, Decl(wideningTuples1.ts, 2, 3))
|
|
>foo : Symbol(foo, Decl(wideningTuples1.ts, 0, 0))
|
|
>undefined : Symbol(undefined)
|
|
|
|
y = [""];
|
|
>y : Symbol(y, Decl(wideningTuples1.ts, 2, 3))
|
|
|