mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
Merge pull request #3874 from laytan/fix-not-detecting-duplicate-proc-case
Fix not detecting duplicate proc cases
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user