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

8 lines
247 B
C

struct Foo { int a; }
fn void test1()
{
Foo({ 32 }); // #error: A type cannot be followed by (), if you intended a cast, use (type)(expression)
(Foo)({ 32 }); // #error: Casting from an untyped list to a concrete type is not possible.
}