Skip to content

Commit

Permalink
Merge pull request #3874 from laytan/fix-not-detecting-duplicate-proc…
Browse files Browse the repository at this point in the history
…-case

Fix not detecting duplicate proc cases
  • Loading branch information
Kelimion authored Jul 4, 2024
2 parents 22fabba + f66b702 commit c8432df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8432df

Please sign in to comment.