Skip to content

Commit 4bb5cfb

Browse files
committed
Add regression test
1 parent 5e55118 commit 4bb5cfb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @strict: true
2+
3+
// Repro from #27337
4+
5+
interface Array<T> {
6+
equalsShallow<T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>): boolean;
7+
}
8+
9+
declare const a: (string | number)[] | null[] | undefined[] | {}[];
10+
declare const b: (string | number)[] | null[] | undefined[] | {}[];
11+
12+
let x = a.equalsShallow(b);

0 commit comments

Comments
 (0)