mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Added $converable / $castable. Simplify and corrected if try/catch parsing. Fix bug with { [A] = 1 }
This commit is contained in:
committed by
Christoffer Lerno
parent
7e0a29ef40
commit
812bd8b3d0
@@ -1,7 +1,7 @@
|
||||
|
||||
const int CONSTANT = 1;
|
||||
int[CONSTANT] a2;
|
||||
|
||||
int[3] a3 = { [CONSTANT] = 1 };
|
||||
const bool B = true;
|
||||
int[B] c2; // #error: Expected an integer size.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ fn void test1()
|
||||
int! a;
|
||||
int b;
|
||||
int*! x;
|
||||
if (try int &a = a) {} // #error: A new variable was expected.
|
||||
if (try int 1 = a) {} // #error: A new variable was expected.
|
||||
}
|
||||
|
||||
fn void test2()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
const int CONSTANT = 1;
|
||||
int[CONSTANT] a2;
|
||||
|
||||
int[3] a3 = { [CONSTANT] = 1 };
|
||||
const bool B = true;
|
||||
int[B] c2; // #error: Expected an integer size.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ fn void test1()
|
||||
int! a;
|
||||
int b;
|
||||
int*! x;
|
||||
if (try int &a = a) {} // #error: A new variable was expected.
|
||||
if (try int 1 = a) {} // #error: A new variable was expected.
|
||||
}
|
||||
|
||||
fn void test2()
|
||||
|
||||
Reference in New Issue
Block a user