mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
16 lines
288 B
C
16 lines
288 B
C
fn void test1()
|
|
{
|
|
|
|
int! a;
|
|
int b;
|
|
int*! x;
|
|
if (try int &a = a) {} // #error: Expected a variable name after the type.
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
int! a;
|
|
int b;
|
|
int*! x;
|
|
if (try foo::z = a, b += 1) {} // #error: The 'try' must be placed last, can you change it?
|
|
} |