TypeScript/tests/cases/compiler/limitDeepInstantiations.ts
2017-04-04 14:53:48 -07:00

6 lines
139 B
TypeScript

// Repro from #14837
type Foo<T extends "true", B> = { "true": Foo<T, Foo<T, B>> }[T];
let f1: Foo<"true", {}>;
let f2: Foo<"false", {}>;