mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
30 lines
433 B
Plaintext
30 lines
433 B
Plaintext
module foo;
|
|
import std, bar;
|
|
struct Foo
|
|
{
|
|
int i;
|
|
}
|
|
fn void foo(Foo f) {}
|
|
|
|
fn void a()
|
|
{
|
|
List{} a; // #error: 'List' requires generic arguments inside the '{}', did you forget them
|
|
}
|
|
fn void b()
|
|
{
|
|
foo(Foo{}); // #error: 'Foo' is not a generic type
|
|
}
|
|
fn void c()
|
|
{
|
|
bar::test{}(); // #error: 'test' requires generic arguments inside the '{}', did you forget them
|
|
}
|
|
|
|
fn int main()
|
|
{
|
|
|
|
return 0;
|
|
}
|
|
|
|
module bar{Type};
|
|
fn void test()
|
|
{} |