TypeScript/tests/cases/compiler/mappedTypeInferenceCircularity.ts
2016-11-26 12:22:29 -08:00

7 lines
141 B
TypeScript

// Repro from #12511
type HTML = { [K in 'div']: Block<HTML> };
type Block<P> = <T>(func: HTML) => {};
declare var h: HTML;
h.div(h);