Skip to content

Commit

Permalink
fix: recover official tsc conformance test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
devgony committed Dec 29, 2023
1 parent 594c1e1 commit 4a839ca
Showing 1 changed file with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
interface StrNum extends Array<string | number> {
0: string;
1: number;
length: 2;
interface StrNum extends Array<string|number> {
0: string;
1: number;
length: 2;
}

var x: [string, number];
var y: StrNum;
var y: StrNum
var z: {
0: string;
1: number;
length: 2;
};
0: string;
1: number;
length: 2;
}

var [a, b, c] = x;
var [d, e, f] = y;
Expand All @@ -33,8 +33,3 @@ var n3: [number, string] = z;
var o1: [string, number] = x;
var o2: [string, number] = y;
var o3: [string, number] = y;

x = y;
y = x;
y = z;
z = y;

0 comments on commit 4a839ca

Please sign in to comment.