Do-while uses for codegen and somewhat smaller llvm codegen

This commit is contained in:
Christoffer Lerno
2021-11-27 14:28:33 +01:00
committed by Christoffer Lerno
parent 164a1ef59d
commit 3242bcabc0
31 changed files with 1587 additions and 1394 deletions

View File

@@ -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;
}