diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-05 00:50:52 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-07-05 00:50:52 +0200 |
| commit | f66b7021a6023854404ffa60ebf757afe8aca6d1 (patch) | |
| tree | 1f0452f223f443024704a1ab54fb823b16d6374b /src/check_type.cpp | |
| parent | 3c2161b19695d5eb21375854996a67f71d0de5c2 (diff) | |
Fix not detecting duplicate proc cases
Fixes #3864
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 7fd9b379a..52c6f89ab 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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); |