aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorFourteenBrush <naessensarthur2@protonmail.com>2024-02-02 21:01:52 +0100
committerFourteenBrush <naessensarthur2@protonmail.com>2024-02-02 21:01:52 +0100
commitd463adfe4f7a0687087e6915cdb8b5adac65fa6d (patch)
tree51eebf1a4bf65466cb48b11deeac697e99701bc9 /src/check_stmt.cpp
parent16bd19ed4399cfa56ee9d7d5d467b0f25cf91646 (diff)
parentcec08114fdd9812819c10c66cd10f0a9d63866b2 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index d56e5e212..6897701d6 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1934,7 +1934,7 @@ gb_internal void check_value_decl_stmt(CheckerContext *ctx, Ast *node, u32 mod_f
TokenPos pos = f->token.pos;
Type *this_type = base_type(e->type);
Type *other_type = base_type(f->type);
- if (!are_types_identical(this_type, other_type)) {
+ if (!signature_parameter_similar_enough(this_type, other_type)) {
error(e->token,
"Foreign entity '%.*s' previously declared elsewhere with a different type\n"
"\tat %s",