Correctly poison the analysis after a failed $assert or $error. #2284

This commit is contained in:
Christoffer Lerno
2025-07-09 16:51:43 +02:00
parent bf0ff8abbc
commit 299d1f530f
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
fn void main()
{
$error "Foo %s", 1; // #error: Foo 1
$assert 0 > 1 : "Foo %s", 0.0002;
}
fn void test()
{
$assert 0 > 1 : "Foo %s", 0.0002; // #error: Foo 0.0002
}