Home
last modified time | relevance | path

Searched refs:TupleOf (Results 1 – 5 of 5) sorted by relevance

/third_party/typescript/tests/baselines/reference/
DrecursiveConditionalTypes.errors.txt16 …veConditionalTypes.ts(49,5): error TS2322: Type 'TupleOf<number, M>' is not assignable to type 'Tu…
17 …Type 'number extends M ? number[] : _TupleOf<number, M, []>' is not assignable to type 'TupleOf<nu…
18 Type 'number[] | _TupleOf<number, M, []>' is not assignable to type 'TupleOf<number, N>'.
19 Type 'number[]' is not assignable to type 'TupleOf<number, N>'.
20 …veConditionalTypes.ts(50,5): error TS2322: Type 'TupleOf<number, N>' is not assignable to type 'Tu…
21 …Type 'number extends N ? number[] : _TupleOf<number, N, []>' is not assignable to type 'TupleOf<nu…
22 Type 'number[] | _TupleOf<number, N, []>' is not assignable to type 'TupleOf<number, M>'.
23 Type 'number[]' is not assignable to type 'TupleOf<number, M>'.
92 …type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : ne…
95 type TT0 = TupleOf<string, 4>;
[all …]
DrecursiveConditionalTypes.js40 type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : nev…
43 type TT0 = TupleOf<string, 4>;
44 type TT1 = TupleOf<number, 0 | 2 | 4>;
45 type TT2 = TupleOf<number, number>;
46 type TT3 = TupleOf<number, any>;
47 type TT4 = TupleOf<number, 100>; // Depth error
49 function f22<N extends number, M extends N>(tn: TupleOf<number, N>, tm: TupleOf<number, M>) {
54 declare function f23<T>(t: TupleOf<T, 3>): T;
190 declare type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, […
192 declare type TT0 = TupleOf<string, 4>;
[all …]
DrecursiveConditionalTypes.types89 type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : nev…
90 >TupleOf : TupleOf<T, N>
95 type TT0 = TupleOf<string, 4>;
98 type TT1 = TupleOf<number, 0 | 2 | 4>;
101 type TT2 = TupleOf<number, number>;
104 type TT3 = TupleOf<number, any>;
107 type TT4 = TupleOf<number, 100>; // Depth error
110 function f22<N extends number, M extends N>(tn: TupleOf<number, N>, tm: TupleOf<number, M>) {
111 >f22 : <N extends number, M extends N>(tn: TupleOf<number, N>, tm: TupleOf<number, M>) => void
112 >tn : TupleOf<number, N>
[all …]
DrecursiveConditionalTypes.symbols140 type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : nev…
141 >TupleOf : Symbol(TupleOf, Decl(recursiveConditionalTypes.ts, 34, 16))
166 type TT0 = TupleOf<string, 4>;
168 >TupleOf : Symbol(TupleOf, Decl(recursiveConditionalTypes.ts, 34, 16))
170 type TT1 = TupleOf<number, 0 | 2 | 4>;
172 >TupleOf : Symbol(TupleOf, Decl(recursiveConditionalTypes.ts, 34, 16))
174 type TT2 = TupleOf<number, number>;
176 >TupleOf : Symbol(TupleOf, Decl(recursiveConditionalTypes.ts, 34, 16))
178 type TT3 = TupleOf<number, any>;
180 >TupleOf : Symbol(TupleOf, Decl(recursiveConditionalTypes.ts, 34, 16))
[all …]
/third_party/typescript/tests/cases/compiler/
DrecursiveConditionalTypes.ts43 type TupleOf<T, N extends number> = N extends N ? number extends N ? T[] : _TupleOf<T, N, []> : nev… alias
46 type TT0 = TupleOf<string, 4>;
47 type TT1 = TupleOf<number, 0 | 2 | 4>;
48 type TT2 = TupleOf<number, number>;
49 type TT3 = TupleOf<number, any>;
50 type TT4 = TupleOf<number, 100>; // Depth error
52 function f22<N extends number, M extends N>(tn: TupleOf<number, N>, tm: TupleOf<number, M>) {
57 declare function f23<T>(t: TupleOf<T, 3>): T;