- Support @param directives for ... parameters. #2578

This commit is contained in:
Christoffer Lerno
2025-11-17 10:44:04 +01:00
parent 06884720e5
commit 1e543dc286
4 changed files with 56 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
module foo;
import std;
<* @param [in] ... : "ofkeofek" *> // #error: may not have any in-out modifiers
extern fn void test2(...);
<* @param ... : "ofkeofek" *>
extern fn void test(...);
<* @param ... : "ofkeofek" *> // #error: are only allowed macros and functions with
extern fn void test3();
<*
@param ... : "ofkeofek"
@param ... : "ofkeofek" *> // #error: @param may not be repeated
extern fn void test4(...);
fn int main()
{
return 0;
}