@@ -59,7 +59,7 @@ declare const itNum: Iterable<number>
59
59
60
60
declare function fn1<const T extends readonly unknown[]>(...args: T): T;
61
61
>fn1 : <const T extends readonly unknown[]>(...args: T) => T
62
- > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^
62
+ > : ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^
63
63
>args : T
64
64
> : ^
65
65
@@ -69,7 +69,7 @@ const res1 = fn1(..."hello");
69
69
>fn1(..."hello") : readonly any[]
70
70
> : ^^^^^^^^^^^^^^
71
71
>fn1 : <const T extends readonly unknown[]>(...args: T) => T
72
- > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
72
+ > : ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
73
73
>..."hello" : any
74
74
> : ^^^
75
75
>"hello" : "hello"
@@ -81,7 +81,7 @@ const res2 = fn1(...itNum);
81
81
>fn1(...itNum) : Iterable<number>
82
82
> : ^^^^^^^^^^^^^^^^
83
83
>fn1 : <const T extends readonly unknown[]>(...args: T) => T
84
- > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
84
+ > : ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
85
85
>...itNum : Iterable<number>
86
86
> : ^^^^^^^^^^^^^^^^
87
87
>itNum : Iterable<number>
@@ -93,7 +93,7 @@ const res3 = fn1(true, ..."hello");
93
93
>fn1(true, ..."hello") : readonly [true, ...any[]]
94
94
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
95
95
>fn1 : <const T extends readonly unknown[]>(...args: T) => T
96
- > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
96
+ > : ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
97
97
>true : true
98
98
> : ^^^^
99
99
>..."hello" : any
@@ -107,7 +107,7 @@ const res4 = fn1(true, ...itNum);
107
107
>fn1(true, ...itNum) : readonly [true, ...Iterable<number>[]]
108
108
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
109
>fn1 : <const T extends readonly unknown[]>(...args: T) => T
110
- > : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
110
+ > : ^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
111
111
>true : true
112
112
> : ^^^^
113
113
>...itNum : Iterable<number>
@@ -118,7 +118,7 @@ const res4 = fn1(true, ...itNum);
118
118
// repro from #52781
119
119
declare function foo<T extends unknown[]>(...args: T): T;
120
120
>foo : <T extends unknown[]>(...args: T) => T
121
- > : ^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^
121
+ > : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^
122
122
>args : T
123
123
> : ^
124
124
@@ -128,7 +128,7 @@ const p1 = foo(..."hello");
128
128
>foo(..."hello") : any[]
129
129
> : ^^^^^
130
130
>foo : <T extends unknown[]>(...args: T) => T
131
- > : ^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
131
+ > : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
132
132
>..."hello" : any
133
133
> : ^^^
134
134
>"hello" : "hello"
@@ -140,7 +140,7 @@ const p2 = foo(...itNum);
140
140
>foo(...itNum) : Iterable<number>
141
141
> : ^^^^^^^^^^^^^^^^
142
142
>foo : <T extends unknown[]>(...args: T) => T
143
- > : ^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
143
+ > : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
144
144
>...itNum : Iterable<number>
145
145
> : ^^^^^^^^^^^^^^^^
146
146
>itNum : Iterable<number>
@@ -152,7 +152,7 @@ const p3 = foo(true, ..."hello");
152
152
>foo(true, ..."hello") : [boolean, ...any[]]
153
153
> : ^^^^^^^^^^^^^^^^^^^
154
154
>foo : <T extends unknown[]>(...args: T) => T
155
- > : ^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
155
+ > : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
156
156
>true : true
157
157
> : ^^^^
158
158
>..."hello" : any
@@ -166,7 +166,7 @@ const p4 = foo(true, ...itNum);
166
166
>foo(true, ...itNum) : [boolean, ...Iterable<number>[]]
167
167
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
168
168
>foo : <T extends unknown[]>(...args: T) => T
169
- > : ^ ^^^^^^^^^^^^^^^^^^ ^^^^^ ^^ ^^^^^^
169
+ > : ^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^
170
170
>true : true
171
171
> : ^^^^
172
172
>...itNum : Iterable<number>
0 commit comments