Skip to content

Commit 38e991c

Browse files
committed
Use areTypeComparable for isComparableTo implementation
1 parent 994bc2c commit 38e991c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace ts {
108108
isIdenticalTo: (a, b) => checkTypeRelatedTo(a, b, identityRelation, /*errorNode*/undefined),
109109
isSubtypeOf: (a, b) => checkTypeRelatedTo(a, b, subtypeRelation, /*errorNode*/undefined),
110110
isAssignableTo: (a, b) => checkTypeRelatedTo(a, b, assignableRelation, /*errorNode*/undefined),
111-
isComparableTo: (a, b) => checkTypeRelatedTo(a, b, comparableRelation, /*errorNode*/undefined),
111+
isComparableTo: areTypesComparable,
112112
isInstantiationOf: (a, b) => {
113113
return a && b && (a.target === b);
114114
},

0 commit comments

Comments
 (0)