Skip to content

Commit efc15ae

Browse files
committed
Accept new baselines
1 parent e9ad5da commit efc15ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/baselines/reference/unionTypeInference.errors.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts(9,15): error TS2345: Argument of type '2' is not assignable to parameter of type 'string | 1'.
2-
tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts(13,15): error TS2345: Argument of type 'number | "hello"' is not assignable to parameter of type 'string | 1'.
3-
Type 'number' is not assignable to type 'string | 1'.
42

53

6-
==== tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts (2 errors) ====
4+
==== tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference.ts (1 errors) ====
75
// Verify that inferences made *to* a type parameter in a union type are secondary
86
// to inferences made directly to that type parameter
97

@@ -19,9 +17,6 @@ tests/cases/conformance/types/typeRelationships/typeInference/unionTypeInference
1917
var a2 = f(1, "hello");
2018
var a3: number;
2119
var a3 = f(1, a1 || "hello");
22-
~~~~~~~~~~~~~
23-
!!! error TS2345: Argument of type 'number | "hello"' is not assignable to parameter of type 'string | 1'.
24-
!!! error TS2345: Type 'number' is not assignable to type 'string | 1'.
2520
var a4: any;
2621
var a4 = f(undefined, "abc");
2722

0 commit comments

Comments
 (0)