Copying const enums and regular enums incorrect #2313.

This commit is contained in:
Christoffer Lerno
2025-07-19 21:07:25 +02:00
parent 694d297eb8
commit b88722b4a6
3 changed files with 25 additions and 4 deletions

View 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();
}