diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-01 11:38:33 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-10-03 13:06:49 +0300 |
| commit | 9d8cdb855bd20f20d00618e8bc78dcf237232537 (patch) | |
| tree | 49618ab8acea16582d6feb88b716ef9f46a52745 /src/Sema.zig | |
| parent | db5562deb0fe193aced9498c05ccf786ca98ba05 (diff) | |
| download | zig-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.zig | 2 |
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, } }; } |
