aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2022-10-01 11:38:33 -0400
committerVeikka Tuominen <git@vexu.eu>2022-10-03 13:06:49 +0300
commit9d8cdb855bd20f20d00618e8bc78dcf237232537 (patch)
tree49618ab8acea16582d6feb88b716ef9f46a52745 /src/Sema.zig
parentdb5562deb0fe193aced9498c05ccf786ca98ba05 (diff)
downloadzig-9d8cdb855bd20f20d00618e8bc78dcf237232537.tar.gz
zig-9d8cdb855bd20f20d00618e8bc78dcf237232537.zip
Sema: fix function paramater count mismatch note
expected type 'fn() void', found 'fn(i32) void' function with 0 parameters cannot cast into a function with 0 parameters => expected type 'fn() void', found 'fn(i32) void' function with 1 parameters cannot cast into a function with 0 parameters
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index ed62fe02b2..d580397a50 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -24312,7 +24312,7 @@ fn coerceInMemoryAllowedFns(
if (dest_info.param_types.len != src_info.param_types.len) {
return InMemoryCoercionResult{ .fn_param_count = .{
- .actual = dest_info.param_types.len,
+ .actual = src_info.param_types.len,
.wanted = dest_info.param_types.len,
} };
}