Sema: better function parameter source location

This commit is contained in:
Veikka Tuominen
2022-07-19 20:20:57 +03:00
committed by Andrew Kelley
parent 83b2d2cd3e
commit 79ef0cdf30
14 changed files with 256 additions and 109 deletions

View File

@@ -0,0 +1,10 @@
export fn foo(num: anytype) i32 {
_ = num;
return 0;
}
// error
// backend=stage2
// target=native
//
// :1:15: error: generic parameters not allowed in function with calling convention 'C'