mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
// @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);
|