Removed original_type, pure, removed bigint, added i128 type, lots of fixes to $Foo, reassigning ct type, catch/macro, "!", removed type inference.

This commit is contained in:
Christoffer Lerno
2021-10-08 10:07:40 +02:00
committed by Christoffer Lerno
parent 1b086e06f1
commit b4df56db54
84 changed files with 4820 additions and 4173 deletions

View File

@@ -3,7 +3,7 @@ module test;
func void test1()
{
bool! x = 0;
if (x) // #error: 'bool!' cannot be converted into 'bool'
if (x) // #error: 'bool!' cannot be converted to 'bool'
{
x = 100;
}
@@ -12,7 +12,7 @@ func void test1()
func void test2()
{
bool! x = 0;
while (x) // #error: 'bool!' cannot be converted into 'bool'
while (x) // #error: 'bool!' cannot be converted to 'bool'
{
x = false;
}
@@ -30,5 +30,5 @@ func void test3()
{
x = !x;
}
while (x); // #error: 'bool!' cannot be converted into 'bool'
while (x); // #error: 'bool!' cannot be converted to 'bool'
}