Module: implement span for .call_arg of a @call

Closes #16750
This commit is contained in:
Jacob Young
2023-08-09 10:07:55 -04:00
parent 736df27663
commit 57470e833e
2 changed files with 52 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
export fn builtinCallBoolFunctionInlineWithVoid() void {
@call(.always_inline, boolFunction, .{{}});
}
fn boolFunction(_: bool) void {}
// error
// backend=stage2
// target=native
//
// :2:43: error: expected type 'bool', found 'void'
// :5:20: note: parameter type declared here