- @if now does implicit conversion to bool like $if. #2086

This commit is contained in:
Christoffer Lerno
2025-04-16 23:49:12 +02:00
parent 6454856fdb
commit 3244898610
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
module test;
fn void main()
{
int $a = 0;
$if $a:
$endif;
int a @if(!$a);
int a @if($a);
int a @if((bool)$a);
}