Files
c3c/test/test_suite/errors/try_with_weird_stuff.c3
2021-11-16 17:46:44 +01:00

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?
}