Add regression test
This commit is contained in:
parent
5e55118076
commit
4bb5cfb9bb
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
Loading…
Reference in a new issue