mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Copying const enums and regular enums incorrect #2313.
This commit is contained in:
20
test/test_suite/enumerations/enum_copy.c3t
Normal file
20
test/test_suite/enumerations/enum_copy.c3t
Normal file
@@ -0,0 +1,20 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user