Skip to content

Commit 68036c5

Browse files
committed
Accept new baselines
1 parent 106214a commit 68036c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/baselines/reference/typeArgumentInferenceWithObjectLiteral.errors.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts(30,10): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
2-
Type argument candidate 'E1' is not a valid type argument because it is not a supertype of candidate '0'.
31
tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts(35,10): error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
42
Type argument candidate 'E1' is not a valid type argument because it is not a supertype of candidate 'E2'.
53

64

7-
==== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts (2 errors) ====
5+
==== tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjectLiteral.ts (1 errors) ====
86
interface Computed<T> {
97
read(): T;
108
write(value: T);
@@ -35,9 +33,6 @@ tests/cases/conformance/expressions/functionCalls/typeArgumentInferenceWithObjec
3533
var v1 = f1({ w: x => x, r: () => 0 }, 0);
3634
var v1 = f1({ w: x => x, r: () => 0 }, E1.X);
3735
var v1 = f1({ w: x => x, r: () => E1.X }, 0);
38-
~~
39-
!!! error TS2453: The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
40-
!!! error TS2453: Type argument candidate 'E1' is not a valid type argument because it is not a supertype of candidate '0'.
4136

4237
var v2: E1;
4338
var v2 = f1({ w: x => x, r: () => E1.X }, E1.X);

0 commit comments

Comments
 (0)