Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed May 10, 2019
1 parent 46a278d commit ee59cee
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -190,3 +190,9 @@ type ProductComplementComplement = {
};
type PCCA = ProductComplementComplement['a'];
type PCCB = ProductComplementComplement['b'];

// Repro from #31326

type Hmm<T, U extends T> = U extends T ? { [K in keyof U]: number } : never;
type What = Hmm<{}, { a: string }>
const w: What = { a: 4 };

0 comments on commit ee59cee

Please sign in to comment.