Skip to content

Commit 34b4dbb

Browse files
committed
Add regression test
1 parent 16103a9 commit 34b4dbb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,3 +517,13 @@ class B extends A<{ x: number}> {
517517
p.x;
518518
}
519519
}
520+
521+
// Repro from #13749
522+
523+
class Form<T> {
524+
private childFormFactories: {[K in keyof T]: (v: T[K]) => Form<T[K]>}
525+
526+
public set<K extends keyof T>(prop: K, value: T[K]) {
527+
this.childFormFactories[prop](value)
528+
}
529+
}

0 commit comments

Comments
 (0)