TypeScript/tests/cases/compiler/deeplyNestedCheck.ts
2017-03-23 11:23:26 -07:00

10 lines
195 B
TypeScript

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