Skip to content

Commit 5eab242

Browse files
committed
Accept new baselines
1 parent 2c8b1fa commit 5eab242

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.errors.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterInd
2525
tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(16,47): error TS2313: Type parameter 'V' has a circular constraint.
2626
tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,32): error TS2313: Type parameter 'T' has a circular constraint.
2727
tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(18,45): error TS2313: Type parameter 'V' has a circular constraint.
28+
tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts(23,24): error TS2313: Type parameter 'S' has a circular constraint.
2829

2930

30-
==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts (27 errors) ====
31+
==== tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts (28 errors) ====
3132
class C<U extends T, T extends U> { }
3233
~
3334
!!! error TS2313: Type parameter 'U' has a circular constraint.
@@ -105,4 +106,6 @@ tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterInd
105106

106107
type Foo<T> = [T] extends [number] ? {} : {};
107108
function foo<S extends Foo<S>>() {}
109+
~~~~~~
110+
!!! error TS2313: Type parameter 'S' has a circular constraint.
108111

tests/baselines/reference/typeParameterIndirectlyConstrainedToItself.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ type Foo<T> = [T] extends [number] ? {} : {};
3838
>Foo : Foo<T>
3939

4040
function foo<S extends Foo<S>>() {}
41-
>foo : <S extends Foo<S>>() => void
41+
>foo : <S>() => void
4242

0 commit comments

Comments
 (0)