summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir/hir_ops.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/hir/hir_ops.cpp b/src/hir/hir_ops.cpp
index f187bafe..3a33d5cb 100644
--- a/src/hir/hir_ops.cpp
+++ b/src/hir/hir_ops.cpp
@@ -324,10 +324,12 @@ namespace {
TODO(sp, "ErasedType - " << left);
),
(Function,
- TU_IFLET(::HIR::TypeRef::Data, right.m_data, Function, re,
+ if(/*const auto* re =*/ right.m_data.opt_Function() ) {
+ if( left == right )
+ return ::OrdEqual;
TODO(sp, "Function - " << left << " vs " << right);
- //return typelist_ord_specific(sp, le.arg_types, re.arg_types);
- )
+ //return typelist_ord_specific(sp, le.arg_types, re->arg_types);
+ }
else {
BUG(sp, "Mismatched types - " << left << " and " << right);
}