Skip to content

Commit 4ab9c02

Browse files
committed
Accept baselines
1 parent ad67cd3 commit 4ab9c02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/baselines/reference/arityAndOrderCompatibility01.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(13,12): error TS2493: Tuple type '[string, number]' with length '2' cannot be assigned to tuple with length '3'.
22
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(14,12): error TS2460: Type 'StrNum' has no property '2'.
33
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,5): error TS2461: Type '{ 0: string; 1: number; }' is not an array type.
4+
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(15,12): error TS2460: Type '{ 0: string; 1: number; }' has no property '2'.
45
tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(16,5): error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'.
56
Types of property '0' are incompatible.
67
Type 'string' is not assignable to type 'number'.
@@ -46,7 +47,7 @@ tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(30,5): error
4647
Type 'string' is not assignable to type 'number'.
4748

4849

49-
==== tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts (18 errors) ====
50+
==== tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts (19 errors) ====
5051
interface StrNum extends Array<string|number> {
5152
0: string;
5253
1: number;
@@ -68,6 +69,8 @@ tests/cases/conformance/types/tuple/arityAndOrderCompatibility01.ts(30,5): error
6869
var [g, h, i] = z;
6970
~~~~~~~~~
7071
!!! error TS2461: Type '{ 0: string; 1: number; }' is not an array type.
72+
~
73+
!!! error TS2460: Type '{ 0: string; 1: number; }' has no property '2'.
7174
var j1: [number, number, number] = x;
7275
~~
7376
!!! error TS2322: Type '[string, number]' is not assignable to type '[number, number, number]'.

0 commit comments

Comments
 (0)