We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e55118 commit 4bb5cfbCopy full SHA for 4bb5cfb
tests/cases/conformance/types/typeRelationships/typeInference/bivariantInferences.ts
@@ -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