Skip to content

Commit 06a1145

Browse files
committed
Accept new baselines
1 parent 8ddeb96 commit 06a1145

5 files changed

+17
-17
lines changed

tests/baselines/reference/circularIndexedAccessErrors.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ interface Foo {
8686
}
8787

8888
function foo<T extends Foo | T["hello"]>() {
89-
>foo : <T extends Foo | T["hello"]>() => void
89+
>foo : <T>() => void
9090
>T : T
9191
>Foo : Foo
9292
>T : T

tests/baselines/reference/incorrectRecursiveMappedTypeConstraint.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/compiler/incorrectRecursiveMappedTypeConstraint.ts ===
22
// #17847
33
function sum<T extends { [P in T]: number }, K extends keyof T>(n: number, v: T, k: K) {
4-
>sum : <T extends { [x: string]: number; }, K extends keyof T>(n: number, v: T, k: K) => void
4+
>sum : <T, K extends keyof T>(n: number, v: T, k: K) => void
55
>T : T
66
>P : P
77
>T : T

tests/baselines/reference/typeParameterDirectlyConstrainedToItself.types

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ interface I2<T, U extends U> { }
2424
>U : U
2525

2626
function f<T extends T>() { }
27-
>f : <T extends T>() => void
27+
>f : <T>() => void
2828
>T : T
2929
>T : T
3030

3131
function f2<T, U extends U>() { }
32-
>f2 : <T, U extends U>() => void
32+
>f2 : <T, U>() => void
3333
>T : T
3434
>U : U
3535
>U : U
3636

3737
var a: {
38-
>a : { <T extends T>(): void; <T, U extends U>(): void; }
38+
>a : { <T>(): void; <T, U>(): void; }
3939

4040
<T extends T>(): void;
4141
>T : T
@@ -48,14 +48,14 @@ var a: {
4848
}
4949

5050
var b = <T extends T>() => { }
51-
>b : <T extends T>() => void
52-
><T extends T>() => { } : <T extends T>() => void
51+
>b : <T>() => void
52+
><T extends T>() => { } : <T>() => void
5353
>T : T
5454
>T : T
5555

5656
var b2 = <T, U extends U>() => { }
57-
>b2 : <T, U extends U>() => void
58-
><T, U extends U>() => { } : <T, U extends U>() => void
57+
>b2 : <T, U>() => void
58+
><T, U extends U>() => { } : <T, U>() => void
5959
>T : T
6060
>U : U
6161
>U : U

tests/baselines/reference/typeParameterHasSelfAsConstraint.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== tests/cases/compiler/typeParameterHasSelfAsConstraint.ts ===
22
function foo<T extends T>(x: T): number {
3-
>foo : <T extends T>(x: T) => number
3+
>foo : <T>(x: T) => number
44
>T : T
55
>T : T
66
>x : T

tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.types

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ interface I2<T extends U, U extends V, V extends T> { }
3232
>T : T
3333

3434
function f<U extends T, T extends U>() { }
35-
>f : <U extends T, T extends U>() => void
35+
>f : <U, T>() => void
3636
>U : U
3737
>T : T
3838
>T : T
3939
>U : U
4040

4141
function f2<T extends U, U extends V, V extends T>() { }
42-
>f2 : <T extends U, U extends V, V extends T>() => void
42+
>f2 : <T, U, V>() => void
4343
>T : T
4444
>U : U
4545
>U : U
@@ -48,7 +48,7 @@ function f2<T extends U, U extends V, V extends T>() { }
4848
>T : T
4949

5050
var a: {
51-
>a : { <U extends T, T extends U>(): void; <T extends U, U extends V, V extends T>(): void; }
51+
>a : { <U, T>(): void; <T, U, V>(): void; }
5252

5353
<U extends T, T extends U>(): void;
5454
>U : U
@@ -66,16 +66,16 @@ var a: {
6666
}
6767

6868
var b = <U extends T, T extends U>() => { }
69-
>b : <U extends T, T extends U>() => void
70-
><U extends T, T extends U>() => { } : <U extends T, T extends U>() => void
69+
>b : <U, T>() => void
70+
><U extends T, T extends U>() => { } : <U, T>() => void
7171
>U : U
7272
>T : T
7373
>T : T
7474
>U : U
7575

7676
var b2 = <T extends U, U extends V, V extends T>() => { }
77-
>b2 : <T extends U, U extends V, V extends T>() => void
78-
><T extends U, U extends V, V extends T>() => { } : <T extends U, U extends V, V extends T>() => void
77+
>b2 : <T, U, V>() => void
78+
><T extends U, U extends V, V extends T>() => { } : <T, U, V>() => void
7979
>T : T
8080
>U : U
8181
>U : U

0 commit comments

Comments
 (0)