TypeScript/tests/cases/compiler/freshLiteralTypesInIntersections.ts
2017-11-02 14:48:34 -07:00

8 lines
185 B
TypeScript

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