mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
8 lines
247 B
C
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.
|
|
} |