mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Correctly poison the analysis after a failed $assert or $error. #2284
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user