We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13ce0e9 commit 1f4cbceCopy full SHA for 1f4cbce
src/compiler/checker.ts
@@ -7409,16 +7409,6 @@ namespace ts {
7409
}
7410
7411
7412
- else {
7413
- // Given a type parameter K with a constraint keyof T, a type S is
7414
- // assignable to K if S is assignable to keyof T.
7415
- const constraint = getConstraintOfTypeParameter(<TypeParameter>target);
7416
- if (constraint && constraint.flags & TypeFlags.Index) {
7417
- if (result = isRelatedTo(source, constraint, reportErrors)) {
7418
- return result;
7419
- }
7420
7421
7422
7423
else if (target.flags & TypeFlags.Index) {
7424
// A keyof S is related to a keyof T if T is related to S.
0 commit comments