$alignof, $offsetof and $nameof can now be used in $defined.

This commit is contained in:
Christoffer Lerno
2025-09-16 15:36:37 +02:00
parent c71444e7a0
commit 8342ac80d3
3 changed files with 49 additions and 21 deletions

View File

@@ -0,0 +1,10 @@
import std;
alias Foo = fn void();
fn int main()
{
int x;
io::printn($defined($nameof("hello")));
io::printn($defined($nameof(x)));
return 0;
}