// @strict: true // Repro from #19657 declare function func(a: A, b: B[]): (ab: A & B) => void; const q = func("x" as "x" | "y", ["x"]); q("x");