aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/builtin_call_with_invalid_param.zig
blob: e63d2cbc007fe1ee1014af24ee357f077e69a4e5 (plain)
1
2
3
4
5
6
7
8
9
10
export fn builtinCallBoolFunctionInlineWithVoid() void {
    @call(.always_inline, boolFunction, .{{}});
}

fn boolFunction(_: bool) void {}

// error
//
// :2:43: error: expected type 'bool', found 'void'
// :5:20: note: parameter type declared here