Add regression test

This commit is contained in:
Anders Hejlsberg committed 2017-03-23 11:23:26 -07:00
1 parent f4fc9ed61f
commit 5ea146334a
1 file changed
+9
@@ -0,0 +1,9 @@
// 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]>;
}