mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
22 lines
218 B
Plaintext
22 lines
218 B
Plaintext
module test;
|
|
import test2;
|
|
fn int main()
|
|
{
|
|
Foo1(<int>) a;
|
|
return 0;
|
|
}
|
|
|
|
module test2(<Type>);
|
|
|
|
struct Foo
|
|
{
|
|
Type f;
|
|
}
|
|
|
|
module test2(<Type, FOO>); // #error: declarations of the generic
|
|
|
|
struct Foo1
|
|
{
|
|
Type a;
|
|
}
|