mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 06:20:23 -06:00
Add regression test
This commit is contained in:
parent
f4fc9ed61f
commit
5ea146334a
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]>;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user