Skip to content

Commit e748158

Browse files
committed
rebaseline
1 parent ebc4e71 commit e748158

File tree

58 files changed

+276
-217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+276
-217
lines changed

tests/baselines/reference/YieldStarExpression4_es6.types

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function *g() {
66
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77

88
yield * [];
9-
>yield * [] : any
9+
>yield * [] : void
10+
> : ^^^^
1011
>[] : undefined[]
1112
> : ^^^^^^^^^^^
1213
}

tests/baselines/reference/argumentsObjectIterator02_ES6.types

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
1212
> : ^^^^^^
1313

1414
let blah = arguments[Symbol.iterator];
15-
>blah : () => IterableIterator<any>
16-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
17-
>arguments[Symbol.iterator] : () => IterableIterator<any>
18-
> :
15+
>blah : () => BuiltinIterator<any, void, undefined>
16+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
>arguments[Symbol.iterator] : () => BuiltinIterator<any, void, undefined>
18+
> :
1919
>arguments : IArguments
2020
> : ^^^^^^^^^^
2121
>Symbol.iterator : unique symbol
@@ -33,10 +33,10 @@ function doubleAndReturnAsArray(x: number, y: number, z: number): [number, numbe
3333

3434
for (let arg of blah()) {
3535
>arg : any
36-
>blah() : IterableIterator<any>
37-
> : ^^^^^^^^^^^^^^^^^^^^^
38-
>blah : () => IterableIterator<any>
39-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36+
>blah() : BuiltinIterator<any, void, undefined>
37+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38+
>blah : () => BuiltinIterator<any, void, undefined>
39+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4040

4141
result.push(arg + arg);
4242
>result.push(arg + arg) : number

tests/baselines/reference/arrayFrom.types

+12-12
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ const result2: A[] = Array.from(inputA.values());
8383
> : ^^^^^^^^^^^^^^^^
8484
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[]; <T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[]; <T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[]; }
8585
> : ^^^ ^^ ^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^
86-
>inputA.values() : IterableIterator<A>
87-
> : ^^^^^^^^^^^^^^^^^^^
88-
>inputA.values : () => IterableIterator<A>
89-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
86+
>inputA.values() : BuiltinIterator<A, void, undefined>
87+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88+
>inputA.values : () => BuiltinIterator<A, void, undefined>
89+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9090
>inputA : A[]
9191
> : ^^^
92-
>values : () => IterableIterator<A>
93-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
92+
>values : () => BuiltinIterator<A, void, undefined>
93+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9494

9595
const result3: B[] = Array.from(inputA.values()); // expect error
9696
>result3 : B[]
@@ -103,14 +103,14 @@ const result3: B[] = Array.from(inputA.values()); // expect error
103103
> : ^^^^^^^^^^^^^^^^
104104
>from : { <T>(arrayLike: ArrayLike<T>): T[]; <T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[]; <T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[]; <T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[]; }
105105
> : ^^^ ^^ ^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^
106-
>inputA.values() : IterableIterator<A>
107-
> : ^^^^^^^^^^^^^^^^^^^
108-
>inputA.values : () => IterableIterator<A>
109-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
106+
>inputA.values() : BuiltinIterator<A, void, undefined>
107+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108+
>inputA.values : () => BuiltinIterator<A, void, undefined>
109+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110110
>inputA : A[]
111111
> : ^^^
112-
>values : () => IterableIterator<A>
113-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^
112+
>values : () => BuiltinIterator<A, void, undefined>
113+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114114

115115
const result4: A[] = Array.from(inputB, ({ b }): A => ({ a: b }));
116116
>result4 : A[]

tests/baselines/reference/bigintWithLib.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bigintWithLib.ts(19,33): error TS2769: No overload matches this call.
55
Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
66
Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
77
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
8-
Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
8+
Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<bigint, any>'.
99
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
1010
Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
1111
Type 'number' is not assignable to type 'bigint'.
@@ -54,7 +54,7 @@ bigintWithLib.ts(46,26): error TS2345: Argument of type 'number' is not assignab
5454
!!! error TS2769: Overload 2 of 3, '(array: Iterable<bigint>): BigInt64Array', gave the following error.
5555
!!! error TS2769: Argument of type 'number[]' is not assignable to parameter of type 'Iterable<bigint>'.
5656
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
57-
!!! error TS2769: Type 'IteratorResult<number, any>' is not assignable to type 'IteratorResult<bigint, any>'.
57+
!!! error TS2769: Type 'IteratorResult<number, void>' is not assignable to type 'IteratorResult<bigint, any>'.
5858
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorResult<bigint, any>'.
5959
!!! error TS2769: Type 'IteratorYieldResult<number>' is not assignable to type 'IteratorYieldResult<bigint>'.
6060
!!! error TS2769: Type 'number' is not assignable to type 'bigint'.

tests/baselines/reference/conditionalTypeDoesntSpinForever.types

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//// [tests/cases/compiler/conditionalTypeDoesntSpinForever.ts] ////
22

33
=== Performance Stats ===
4-
Type Count: 1,000
5-
Instantiation count: 2,500 -> 5,000
4+
Type Count: 1,000 -> 2,500
5+
Instantiation count: 5,000
66

77
=== conditionalTypeDoesntSpinForever.ts ===
88
// A *self-contained* demonstration of the problem follows...

tests/baselines/reference/dependentDestructuredVariables.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
=== Performance Stats ===
44
Type Count: 2,500
5-
Instantiation count: 1,000
5+
Instantiation count: 2,500
66

77
=== dependentDestructuredVariables.ts ===
88
type Action =

tests/baselines/reference/destructuredLateBoundNameHasCorrectTypes.types

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ let { [Symbol.iterator]: destructured } = [];
88
> : ^^^^^^^^^^^^^^^^^
99
>iterator : unique symbol
1010
> : ^^^^^^^^^^^^^
11-
>destructured : () => IterableIterator<undefined>
12-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11+
>destructured : () => BuiltinIterator<undefined, void, undefined>
12+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1313
>[] : undefined[]
1414
> : ^^^^^^^^^^^
1515

1616
void destructured;
1717
>void destructured : undefined
1818
> : ^^^^^^^^^
19-
>destructured : () => IterableIterator<undefined>
20-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19+
>destructured : () => BuiltinIterator<undefined, void, undefined>
20+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121

2222
const named = "prop";
2323
>named : "prop"

tests/baselines/reference/dissallowSymbolAsWeakType.errors.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dissallowSymbolAsWeakType.ts(3,16): error TS2769: No overload matches this call.
22
Overload 1 of 2, '(iterable: Iterable<object>): WeakSet<object>', gave the following error.
33
Argument of type 'symbol[]' is not assignable to parameter of type 'Iterable<object>'.
44
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
5-
Type 'IteratorResult<symbol, any>' is not assignable to type 'IteratorResult<object, any>'.
5+
Type 'IteratorResult<symbol, void>' is not assignable to type 'IteratorResult<object, any>'.
66
Type 'IteratorYieldResult<symbol>' is not assignable to type 'IteratorResult<object, any>'.
77
Type 'IteratorYieldResult<symbol>' is not assignable to type 'IteratorYieldResult<object>'.
88
Type 'symbol' is not assignable to type 'object'.
@@ -15,7 +15,7 @@ dissallowSymbolAsWeakType.ts(8,16): error TS2769: No overload matches this call.
1515
Overload 1 of 2, '(iterable: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
1616
Argument of type '[symbol, false][]' is not assignable to parameter of type 'Iterable<readonly [object, boolean]>'.
1717
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
18-
Type 'IteratorResult<[symbol, false], any>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
18+
Type 'IteratorResult<[symbol, false], void>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
1919
Type 'IteratorYieldResult<[symbol, false]>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
2020
Type 'IteratorYieldResult<[symbol, false]>' is not assignable to type 'IteratorYieldResult<readonly [object, boolean]>'.
2121
Type '[symbol, false]' is not assignable to type 'readonly [object, boolean]'.
@@ -41,7 +41,7 @@ dissallowSymbolAsWeakType.ts(19,14): error TS2345: Argument of type 'symbol' is
4141
!!! error TS2769: Overload 1 of 2, '(iterable: Iterable<object>): WeakSet<object>', gave the following error.
4242
!!! error TS2769: Argument of type 'symbol[]' is not assignable to parameter of type 'Iterable<object>'.
4343
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
44-
!!! error TS2769: Type 'IteratorResult<symbol, any>' is not assignable to type 'IteratorResult<object, any>'.
44+
!!! error TS2769: Type 'IteratorResult<symbol, void>' is not assignable to type 'IteratorResult<object, any>'.
4545
!!! error TS2769: Type 'IteratorYieldResult<symbol>' is not assignable to type 'IteratorResult<object, any>'.
4646
!!! error TS2769: Type 'IteratorYieldResult<symbol>' is not assignable to type 'IteratorYieldResult<object>'.
4747
!!! error TS2769: Type 'symbol' is not assignable to type 'object'.
@@ -63,7 +63,7 @@ dissallowSymbolAsWeakType.ts(19,14): error TS2345: Argument of type 'symbol' is
6363
!!! error TS2769: Overload 1 of 2, '(iterable: Iterable<readonly [object, boolean]>): WeakMap<object, boolean>', gave the following error.
6464
!!! error TS2769: Argument of type '[symbol, false][]' is not assignable to parameter of type 'Iterable<readonly [object, boolean]>'.
6565
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
66-
!!! error TS2769: Type 'IteratorResult<[symbol, false], any>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
66+
!!! error TS2769: Type 'IteratorResult<[symbol, false], void>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
6767
!!! error TS2769: Type 'IteratorYieldResult<[symbol, false]>' is not assignable to type 'IteratorResult<readonly [object, boolean], any>'.
6868
!!! error TS2769: Type 'IteratorYieldResult<[symbol, false]>' is not assignable to type 'IteratorYieldResult<readonly [object, boolean]>'.
6969
!!! error TS2769: Type '[symbol, false]' is not assignable to type 'readonly [object, boolean]'.

tests/baselines/reference/emitter.asyncGenerators.classMethods.es2015.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ class C4 {
5050
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5151

5252
const x = yield* [1];
53-
>x : any
54-
>yield* [1] : any
53+
>x : void
54+
> : ^^^^
55+
>yield* [1] : void
56+
> : ^^^^
5557
>[1] : number[]
5658
> : ^^^^^^^^
5759
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.classMethods.es2018.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ class C4 {
5050
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5151

5252
const x = yield* [1];
53-
>x : any
54-
>yield* [1] : any
53+
>x : void
54+
> : ^^^^
55+
>yield* [1] : void
56+
> : ^^^^
5557
>[1] : number[]
5658
> : ^^^^^^^^
5759
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ class C4 {
5050
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5151

5252
const x = yield* [1];
53-
>x : any
54-
>yield* [1] : any
53+
>x : void
54+
> : ^^^^
55+
>yield* [1] : void
56+
> : ^^^^
5557
>[1] : number[]
5658
> : ^^^^^^^^
5759
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2015.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ async function * f4() {
3131
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
const x = yield* [1];
34-
>x : any
35-
>yield* [1] : any
34+
>x : void
35+
> : ^^^^
36+
>yield* [1] : void
37+
> : ^^^^
3638
>[1] : number[]
3739
> : ^^^^^^^^
3840
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es2018.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ async function * f4() {
3131
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
const x = yield* [1];
34-
>x : any
35-
>yield* [1] : any
34+
>x : void
35+
> : ^^^^
36+
>yield* [1] : void
37+
> : ^^^^
3638
>[1] : number[]
3739
> : ^^^^^^^^
3840
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ async function * f4() {
3131
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
const x = yield* [1];
34-
>x : any
35-
>yield* [1] : any
34+
>x : void
35+
> : ^^^^
36+
>yield* [1] : void
37+
> : ^^^^
3638
>[1] : number[]
3739
> : ^^^^^^^^
3840
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2015.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ const f4 = async function * () {
3939
> :
4040

4141
const x = yield* [1];
42-
>x : any
43-
>yield* [1] : any
42+
>x : void
43+
> : ^^^^
44+
>yield* [1] : void
45+
> : ^^^^
4446
>[1] : number[]
4547
> : ^^^^^^^^
4648
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es2018.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ const f4 = async function * () {
3939
> :
4040

4141
const x = yield* [1];
42-
>x : any
43-
>yield* [1] : any
42+
>x : void
43+
> : ^^^^
44+
>yield* [1] : void
45+
> : ^^^^
4446
>[1] : number[]
4547
> : ^^^^^^^^
4648
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ const f4 = async function * () {
3939
> :
4040

4141
const x = yield* [1];
42-
>x : any
43-
>yield* [1] : any
42+
>x : void
43+
> : ^^^^
44+
>yield* [1] : void
45+
> : ^^^^
4446
>[1] : number[]
4547
> : ^^^^^^^^
4648
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2015.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ const o4 = {
5858
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959

6060
const x = yield* [1];
61-
>x : any
62-
>yield* [1] : any
61+
>x : void
62+
> : ^^^^
63+
>yield* [1] : void
64+
> : ^^^^
6365
>[1] : number[]
6466
> : ^^^^^^^^
6567
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es2018.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ const o4 = {
5858
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959

6060
const x = yield* [1];
61-
>x : any
62-
>yield* [1] : any
61+
>x : void
62+
> : ^^^^
63+
>yield* [1] : void
64+
> : ^^^^
6365
>[1] : number[]
6466
> : ^^^^^^^^
6567
>1 : 1

tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.types

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ const o4 = {
5858
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959

6060
const x = yield* [1];
61-
>x : any
62-
>yield* [1] : any
61+
>x : void
62+
> : ^^^^
63+
>yield* [1] : void
64+
> : ^^^^
6365
>[1] : number[]
6466
> : ^^^^^^^^
6567
>1 : 1

tests/baselines/reference/for-of12.types

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ var v: string;
88
for (v of [0, ""].values()) { }
99
>v : string
1010
> : ^^^^^^
11-
>[0, ""].values() : IterableIterator<string | number>
12-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13-
>[0, ""].values : () => IterableIterator<string | number>
14-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11+
>[0, ""].values() : BuiltinIterator<string | number, void, undefined>
12+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
>[0, ""].values : () => BuiltinIterator<string | number, void, undefined>
14+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
>[0, ""] : (string | number)[]
1616
> : ^^^^^^^^^^^^^^^^^^^
1717
>0 : 0
1818
> : ^
1919
>"" : ""
2020
> : ^^
21-
>values : () => IterableIterator<string | number>
22-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21+
>values : () => BuiltinIterator<string | number, void, undefined>
22+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2323

tests/baselines/reference/for-of13.types

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ var v: string;
88
for (v of [""].values()) { }
99
>v : string
1010
> : ^^^^^^
11-
>[""].values() : IterableIterator<string>
12-
> : ^^^^^^^^^^^^^^^^^^^^^^^^
13-
>[""].values : () => IterableIterator<string>
14-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11+
>[""].values() : BuiltinIterator<string, void, undefined>
12+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
>[""].values : () => BuiltinIterator<string, void, undefined>
14+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1515
>[""] : string[]
1616
> : ^^^^^^^^
1717
>"" : ""
1818
> : ^^
19-
>values : () => IterableIterator<string>
20-
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19+
>values : () => BuiltinIterator<string, void, undefined>
20+
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2121

tests/baselines/reference/for-of39.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ for-of39.ts(1,15): error TS2769: No overload matches this call.
22
Overload 1 of 4, '(iterable?: Iterable<readonly [string, boolean]>): Map<string, boolean>', gave the following error.
33
Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable<readonly [string, boolean]>'.
44
The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
5-
Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
5+
Type 'IteratorResult<[string, number] | [string, true], void>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
66
Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
77
Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult<readonly [string, boolean]>'.
88
Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'.
@@ -20,7 +20,7 @@ for-of39.ts(1,15): error TS2769: No overload matches this call.
2020
!!! error TS2769: Overload 1 of 4, '(iterable?: Iterable<readonly [string, boolean]>): Map<string, boolean>', gave the following error.
2121
!!! error TS2769: Argument of type '([string, number] | [string, true])[]' is not assignable to parameter of type 'Iterable<readonly [string, boolean]>'.
2222
!!! error TS2769: The types returned by '[Symbol.iterator]().next(...)' are incompatible between these types.
23-
!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], any>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
23+
!!! error TS2769: Type 'IteratorResult<[string, number] | [string, true], void>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
2424
!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorResult<readonly [string, boolean], any>'.
2525
!!! error TS2769: Type 'IteratorYieldResult<[string, number] | [string, true]>' is not assignable to type 'IteratorYieldResult<readonly [string, boolean]>'.
2626
!!! error TS2769: Type '[string, number] | [string, true]' is not assignable to type 'readonly [string, boolean]'.

0 commit comments

Comments
 (0)