Removed the naive check for compile time modification, which fixes #1997 but regresses in detection.

This commit is contained in:
Christoffer Lerno
2025-06-01 23:50:13 +02:00
parent 4d848f1707
commit d697b910ba
4 changed files with 10 additions and 33 deletions

View File

@@ -11,13 +11,15 @@ macro void @bar(#a)
}
fn int main()
{
/*
int $i;
var $Type;
@foo($Type = int); // #error: only be modified
@foo($i = 2); // #error: only be modified
@foo($i += 1); // #error: only be modified
@bar($Type = int); // #error: only be modified
@bar($i = 2); // #error: only be modified
@bar($i += 1); // #error: only be modified
@foo($Type = int); // noerror: only be modified
@foo($i = 2); // noerror: only be modified
@foo($i += 1); // noerror: only be modified
@bar($Type = int); // noerror: only be modified
@bar($i = 2); // noerror: only be modified
@bar($i += 1); // noerror: only be modified*/
return 0;
}