mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
18 lines
223 B
Plaintext
18 lines
223 B
Plaintext
macro foo($Foo)
|
|
{
|
|
$Foo a;
|
|
return a;
|
|
}
|
|
|
|
fn void test1()
|
|
{
|
|
var $Bar;
|
|
foo($Bar); // #error: You need to assign a type to
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
var $Bar;
|
|
$Bar z; // #error: You need to assign a type to
|
|
}
|