6 lines
139 B
TypeScript
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", {}>;
|