TypeScript/tests/cases/compiler/deeplyNestedCheck.ts
Anders Hejlsberg 0379666bbf Update tests
2018-04-09 08:51:55 -10:00

10 lines
212 B
TypeScript

// Repro from #14794
interface DataSnapshot<X = {}> {
child(path: string): DataSnapshot;
}
interface Snapshot<T> extends DataSnapshot {
child<U extends Extract<keyof T, string>>(path: U): Snapshot<T[U]>;
}