Skip to content

Commit a75fe51

Browse files
committed
Accept new baselines
1 parent e4443bb commit a75fe51

4 files changed

Lines changed: 11 additions & 5 deletions

tests/baselines/reference/circularTypeofWithVarOrFunc.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarO
22
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts(2,5): error TS2502: 'varOfAliasedType1' is referenced directly or indirectly in its own type annotation.
33
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts(4,5): error TS2502: 'varOfAliasedType2' is referenced directly or indirectly in its own type annotation.
44
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts(5,6): error TS2456: Type alias 'typeAlias2' circularly references itself.
5+
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts(7,18): error TS2576: Return type annotation circularly references itself.
56
tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts(9,6): error TS2456: Type alias 'typeAlias3' circularly references itself.
67

78

8-
==== tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts (5 errors) ====
9+
==== tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarOrFunc.ts (6 errors) ====
910
type typeAlias1 = typeof varOfAliasedType1;
1011
~~~~~~~~~~
1112
!!! error TS2456: Type alias 'typeAlias1' circularly references itself.
@@ -21,6 +22,8 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/circularTypeofWithVarO
2122
!!! error TS2456: Type alias 'typeAlias2' circularly references itself.
2223

2324
function func(): typeAlias3 { return null; }
25+
~~~~~~~~~~
26+
!!! error TS2576: Return type annotation circularly references itself.
2427
var varOfAliasedType3 = func();
2528
type typeAlias3 = typeof varOfAliasedType3;
2629
~~~~~~~~~~

tests/baselines/reference/recursiveResolveDeclaredMembers.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export interface F {
44
>F : F
55

66
(): E;
7-
>E : D<any>
7+
>E : D<F>
88
}
99
export interface D<T extends F = F> {}
1010
>D : D<T>

tests/baselines/reference/recursiveResolveTypeMembers.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
tests/cases/compiler/recursiveResolveTypeMembers.ts(4,49): error TS2576: Return type annotation circularly references itself.
12
tests/cases/compiler/recursiveResolveTypeMembers.ts(4,58): error TS2304: Cannot find name 'H'.
23
tests/cases/compiler/recursiveResolveTypeMembers.ts(4,62): error TS2574: A rest element type must be an array type.
34
tests/cases/compiler/recursiveResolveTypeMembers.ts(4,79): error TS2304: Cannot find name 'R'.
45

56

6-
==== tests/cases/compiler/recursiveResolveTypeMembers.ts (3 errors) ====
7+
==== tests/cases/compiler/recursiveResolveTypeMembers.ts (4 errors) ====
78
// Repro from #25291
89

910
type PromisedTuple<L extends any[], U = (...args: L) => void> =
1011
U extends (h: infer H, ...args: infer R) => [Promise<H>, ...PromisedTuple<R>] ? [] : []
12+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13+
!!! error TS2576: Return type annotation circularly references itself.
1114
~
1215
!!! error TS2304: Cannot find name 'H'.
1316
~~~~~~~~~~~~~~~~~~~

tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,13 +447,13 @@ declare var G: GConstructor;
447447
>GConstructor : GConstructor
448448

449449
var obj13: G1 | G2;
450-
>obj13 : G2 | G1
450+
>obj13 : G1 | G2
451451
>G1 : G1
452452
>G2 : G2
453453

454454
if (obj13 instanceof G) { // narrowed to G1. G1 is return type of prototype property.
455455
>obj13 instanceof G : boolean
456-
>obj13 : G2 | G1
456+
>obj13 : G1 | G2
457457
>G : GConstructor
458458

459459
obj13.foo1;

0 commit comments

Comments
 (0)