Files
c3c/test/test_suite/cast/cast_parse_fails2.c3

8 lines
171 B
Plaintext

struct Foo { int a; }
fn void test1()
{
(Foo)({ 32 });
Foo({ 32 }); // #error: A type cannot be followed by (), if you intended a cast, use '(type) expression'
}