mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Do-while uses for codegen and somewhat smaller llvm codegen
This commit is contained in:
committed by
Christoffer Lerno
parent
164a1ef59d
commit
3242bcabc0
@@ -3,7 +3,7 @@ module test;
|
||||
fn void test1()
|
||||
{
|
||||
bool! x = 0;
|
||||
if (x) // #error: 'bool!' to 'bool'
|
||||
if (x) // #error: The expression may not be a failable, but was 'bool!'
|
||||
{
|
||||
x = 100;
|
||||
}
|
||||
@@ -12,7 +12,7 @@ fn void test1()
|
||||
fn void test2()
|
||||
{
|
||||
bool! x = 0;
|
||||
while (x) // #error: 'bool!' to 'bool'
|
||||
while (x) // #error: The expression may not be a failable, but was 'bool!'
|
||||
{
|
||||
x = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user