Add regression test

This commit is contained in:
Anders Hejlsberg 2018-09-25 18:17:21 -07:00
parent 5e55118076
commit 4bb5cfb9bb

View file

@ -0,0 +1,12 @@
// @strict: true
// Repro from #27337
interface Array<T> {
equalsShallow<T>(this: ReadonlyArray<T>, other: ReadonlyArray<T>): boolean;
}
declare const a: (string | number)[] | null[] | undefined[] | {}[];
declare const b: (string | number)[] | null[] | undefined[] | {}[];
let x = a.equalsShallow(b);