mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
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:
committed by
Christoffer Lerno
parent
1b086e06f1
commit
b4df56db54
@@ -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'
|
||||
}
|
||||
Reference in New Issue
Block a user