In some cases, the compiler would dereference a compile time null. #2215

This commit is contained in:
Christoffer Lerno
2025-06-15 21:58:39 +02:00
parent 1f7b62b248
commit 07eee04e94
6 changed files with 62 additions and 44 deletions

View File

@@ -0,0 +1,12 @@
module test;
macro void test()
{
any *$value;
typeid t = $value.type; // #error: This value is known to be null so you
}
fn int main()
{
test();
return 0;
}