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 7ccc89b commit a914d1cCopy full SHA for a914d1c
src/compiler/checker.ts
@@ -11295,7 +11295,7 @@ namespace ts {
11295
}
11296
else {
11297
const sub = instantiateType((<SubstitutionType>type).substitute, mapper);
11298
- if (sub.flags & TypeFlags.AnyOrUnknown || isTypeSubtypeOf(getRestrictiveInstantiation(maybeVariable), getRestrictiveInstantiation(sub))) {
+ if (sub.flags & TypeFlags.AnyOrUnknown || isTypeAssignableTo(getRestrictiveInstantiation(maybeVariable), getRestrictiveInstantiation(sub))) {
11299
return maybeVariable;
11300
11301
return sub;
0 commit comments