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