mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 07:55:10 -05:00
Add regression test
This commit is contained in:
9
tests/cases/compiler/deeplyNestedCheck.ts
Normal file
9
tests/cases/compiler/deeplyNestedCheck.ts
Normal file
@@ -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]>;
|
||||
}
|
||||
Reference in New Issue
Block a user