Add regression test
This commit is contained in:
parent
16103a9ca2
commit
34b4dbb260
1 changed files with 10 additions and 0 deletions
|
@ -517,3 +517,13 @@ class B extends A<{ x: number}> {
|
|||
p.x;
|
||||
}
|
||||
}
|
||||
|
||||
// Repro from #13749
|
||||
|
||||
class Form<T> {
|
||||
private childFormFactories: {[K in keyof T]: (v: T[K]) => Form<T[K]>}
|
||||
|
||||
public set<K extends keyof T>(prop: K, value: T[K]) {
|
||||
this.childFormFactories[prop](value)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue