From ee5adb87050ae7c0b96056a67dddc5d48174e695 Mon Sep 17 00:00:00 2001 From: Ronan Date: Tue, 30 Sep 2025 08:22:50 +0200 Subject: canonical type equality constraint (#8445) Fixes #8439 When checked, generic type equality constraints types are now in a canonical order, allowing for a commutative type equality operator. --------- Co-authored-by: Mukund Keshava --- source/core/slang-list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core') diff --git a/source/core/slang-list.h b/source/core/slang-list.h index 597f1b9b6..db509d6ba 100644 --- a/source/core/slang-list.h +++ b/source/core/slang-list.h @@ -583,7 +583,7 @@ public: } template - Index binarySearch(const T2& obj) + Index binarySearch(const T2& obj) const { return binarySearch( obj, -- cgit v1.2.3