From 01357ef6d7460471495609034c5b095e622ab39c Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 11 Apr 2025 21:00:30 +0200 Subject: [PATCH] Check before hitting assert. --- src/compiler/sema_decls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/sema_decls.c b/src/compiler/sema_decls.c index 05972fd33..76c55838e 100755 --- a/src/compiler/sema_decls.c +++ b/src/compiler/sema_decls.c @@ -1972,6 +1972,7 @@ static bool sema_check_operator_method_validity(SemaContext *context, Decl *meth // Changed in OVERLOAD_MINUS analysis UNREACHABLE } + ASSERT_SPAN(method, "Method had unexpected operator %d", operator); UNREACHABLE }