Sema: misc error message fixes

This commit is contained in:
Veikka Tuominen
2022-07-01 21:09:07 +03:00
parent c07c2d68c7
commit 226994cd7e
36 changed files with 201 additions and 177 deletions

View File

@@ -0,0 +1,23 @@
export fn entry() void {
foo();
}
fn foo() callconv(.Inline) void {
@setAlignStack(16);
}
export fn entry1() void {
comptime bar();
}
fn bar() void {
@setAlignStack(16);
}
// error
// backend=stage2
// target=native
//
// :5:5: error: @setAlignStack in inline function
// :2:8: note: called from here
// :12:5: error: @setAlignStack in inline call
// :9:17: note: called from here