mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Revert "Check assignable-to before definitely-assignable-to"
This reverts commit 2eb311132e.
This commit is contained in:
@@ -15013,7 +15013,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function isTypeDefinitelyAssignableTo(source: Type, target: Type): boolean {
|
||||
return isTypeAssignableTo(source, target) && isTypeRelatedTo(source, target, definitelyAssignableRelation);
|
||||
return isTypeRelatedTo(source, target, definitelyAssignableRelation);
|
||||
}
|
||||
|
||||
// An object type S is considered to be derived from an object type T if
|
||||
|
||||
Reference in New Issue
Block a user