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:
Christoffer Lerno
2024-09-21 15:55:39 +02:00
parent cdae3ec936
commit abbedeec4f
4 changed files with 31 additions and 14 deletions

View 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;
}