diff options
| author | gingerBill <bill@gingerbill.org> | 2025-03-06 11:17:55 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-03-06 11:17:55 +0000 |
| commit | 97d410c2aee5fd7222dcfde57ada3f68009c57a0 (patch) | |
| tree | 055776b06e43f55780e06b08e4b7c1b1e41bac5c /src | |
| parent | 51d799d2ead78e49551230a33847e279404d2863 (diff) | |
Fix #4909
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_expr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 2f7b5fd0a..46868aff2 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -863,6 +863,11 @@ gb_internal i64 check_distance_between_types(CheckerContext *c, Operand *operand if (are_types_identical(vt, s)) { return 1; } + if (is_type_proc(vt)) { + if (are_types_identical(base_type(vt), src)) { + return 1; + } + } } if (dst->Union.variants.count == 1) { |