Updated casts (#684)

Cast code rework. Remove llvm_set_bool and friends.
This commit is contained in:
Christoffer Lerno
2022-12-27 14:16:47 +01:00
committed by GitHub
parent e2b4a19c81
commit f46697bc54
72 changed files with 1074 additions and 674 deletions

View File

@@ -2,8 +2,8 @@ module test;
fn void test1()
{
bool! x = 0;
if (x) // #error: The expression may not be a failable, but was 'bool!'
bool! x = false;
if (x) // #error: optional, but was 'bool!
{
x = 100;
}
@@ -11,8 +11,8 @@ fn void test1()
fn void test2()
{
bool! x = 0;
while (x) // #error: The expression may not be a failable, but was 'bool!'
bool! x = false;
while (x) // #error: optional, but was 'bool!
{
x = false;
}
@@ -20,7 +20,7 @@ fn void test2()
fn void test3()
{
bool! x = 0;
bool! x = false;
double y = 1;
do
{