summaryrefslogtreecommitdiff
path: root/src/hir/type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r--src/hir/type.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index f75a4d51..c5d08c5f 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -219,6 +219,8 @@ public:
bool operator==(const ::HIR::TypeRef& x) const;
bool operator!=(const ::HIR::TypeRef& x) const { return !(*this == x); }
+ bool operator<(const ::HIR::TypeRef& x) const { return ord(x) == OrdLess; }
+ Ordering ord(const ::HIR::TypeRef& x) const;
// Match generics in `this` with types from `x`