Init new repository
This commit is contained in:
13
tests/errors_proc_vargs.txt
Normal file
13
tests/errors_proc_vargs.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
// #failed: resolve
|
||||
// #error: calling procedure with invalid argument count, expected at least 1 args, got 0
|
||||
// #error: variadic procedures cannot have named arguments
|
||||
|
||||
var_proc :: proc(a: int, ...): int {
|
||||
return a;
|
||||
}
|
||||
|
||||
main :: proc(): int {
|
||||
var_proc();
|
||||
var_proc(a = 1);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user