mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
20 lines
202 B
Plaintext
20 lines
202 B
Plaintext
module generic_module_enum <N>;
|
|
|
|
enum Foo : char (String s)
|
|
{
|
|
BAR {"bar"},
|
|
}
|
|
|
|
module generic_module_enum_test;
|
|
import generic_module_enum;
|
|
|
|
fn void test()
|
|
|
|
{
|
|
Foo{3} foo;
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
test();
|
|
} |