Sema: better function parameter source location
This commit is contained in:
committed by
Andrew Kelley
parent
83b2d2cd3e
commit
79ef0cdf30
10
test/cases/compile_errors/export_generic_function.zig
Normal file
10
test/cases/compile_errors/export_generic_function.zig
Normal 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'
|
||||
Reference in New Issue
Block a user