Skip to content

Commit 1f4cbce

Browse files
committed
Remove incorrect type relationship
1 parent 13ce0e9 commit 1f4cbce

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7409,16 +7409,6 @@ namespace ts {
74097409
}
74107410
}
74117411
}
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-
}
74227412
}
74237413
else if (target.flags & TypeFlags.Index) {
74247414
// A keyof S is related to a keyof T if T is related to S.

0 commit comments

Comments
 (0)