TypeScript/tests/cases/compiler/limitDeepInstantiations.ts

6 lines
139 B
TypeScript
Raw Normal View History

2017-04-04 23:53:48 +02:00
// Repro from #14837
type Foo<T extends "true", B> = { "true": Foo<T, Foo<T, B>> }[T];
let f1: Foo<"true", {}>;
let f2: Foo<"false", {}>;