mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allow the "self" parameter to be $/# for macro methods. Fix bug when passing a type as a compile time value.
This commit is contained in:
7
test/test_suite/expressions/test_ct_param_bug.c3
Normal file
7
test/test_suite/expressions/test_ct_param_bug.c3
Normal file
@@ -0,0 +1,7 @@
|
||||
module test;
|
||||
macro @foo($aaa) {}
|
||||
fn int main(String[] args)
|
||||
{
|
||||
@foo(int); // #error: must be followed by either
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user