Fix not detecting duplicate proc cases

Fixes #3864
This commit is contained in:
Laytan Laats
2024-07-05 00:50:52 +02:00
parent 3c2161b196
commit f66b7021a6
+1 -1
View File
@@ -740,7 +740,7 @@ gb_internal void check_union_type(CheckerContext *ctx, Type *union_type, Ast *no
gb_string_free(str);
} else {
for_array(j, variants) {
if (are_types_identical(t, variants[j])) {
if (union_variant_index_types_equal(t, variants[j])) {
ok = false;
ERROR_BLOCK();
gbString str = type_to_string(t);