Skip to content

Commit e8f86b3

Browse files
committed
Accept new baselines
1 parent c264412 commit e8f86b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/baselines/reference/conditionalTypes1.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tests/cases/conformance/types/conditional/conditionalTypes1.ts(159,5): error TS2
5050
tests/cases/conformance/types/conditional/conditionalTypes1.ts(160,5): error TS2322: Type 'T' is not assignable to type 'ZeroOf<T>'.
5151
Type 'string | number' is not assignable to type 'ZeroOf<T>'.
5252
Type 'string' is not assignable to type 'ZeroOf<T>'.
53-
tests/cases/conformance/types/conditional/conditionalTypes1.ts(263,9): error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'T1', but here has type 'T2'.
53+
tests/cases/conformance/types/conditional/conditionalTypes1.ts(263,9): error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'T1', but here has type 'Foo<T & U>'.
5454
tests/cases/conformance/types/conditional/conditionalTypes1.ts(288,43): error TS2322: Type 'T95<U>' is not assignable to type 'T94<U>'.
5555
Type 'number | boolean' is not assignable to type 'T94<U>'.
5656
Type 'number' is not assignable to type 'T94<U>'.
@@ -392,7 +392,7 @@ tests/cases/conformance/types/conditional/conditionalTypes1.ts(288,43): error TS
392392
var z: T1;
393393
var z: T2; // Error, T2 is distributive, T1 isn't
394394
~
395-
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'T1', but here has type 'T2'.
395+
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'T1', but here has type 'Foo<T & U>'.
396396
!!! related TS6203 tests/cases/conformance/types/conditional/conditionalTypes1.ts:262:9: 'z' was also declared here.
397397
}
398398

tests/baselines/reference/conditionalTypes1.types

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ function f32<T, U>() {
816816
>T1 : T & U extends string ? boolean : number
817817

818818
type T2 = Foo<T & U>;
819-
>T2 : T & U extends string ? boolean : number
819+
>T2 : Foo<T & U>
820820

821821
var z: T1;
822822
>z : T & U extends string ? boolean : number
@@ -829,16 +829,16 @@ function f33<T, U>() {
829829
>f33 : <T, U>() => void
830830

831831
type T1 = Foo<T & U>;
832-
>T1 : T & U extends string ? boolean : number
832+
>T1 : Foo<T & U>
833833

834834
type T2 = Bar<T & U>;
835-
>T2 : T & U extends string ? boolean : number
835+
>T2 : Bar<T & U>
836836

837837
var z: T1;
838-
>z : T & U extends string ? boolean : number
838+
>z : Foo<T & U>
839839

840840
var z: T2;
841-
>z : T & U extends string ? boolean : number
841+
>z : Foo<T & U>
842842
}
843843

844844
// Repro from #21823

0 commit comments

Comments
 (0)