mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix of const enum resolution order #2264
This commit is contained in:
18
test/test_suite/enumerations/enum_const_resolution_order.c3t
Normal file
18
test/test_suite/enumerations/enum_const_resolution_order.c3t
Normal file
@@ -0,0 +1,18 @@
|
||||
module foo;
|
||||
import bar;
|
||||
|
||||
struct Foo
|
||||
{
|
||||
MyEnum value;
|
||||
}
|
||||
|
||||
module bar;
|
||||
|
||||
enum MyEnum : const CInt
|
||||
{
|
||||
VAL1 = 1,
|
||||
VAL2 = 2,
|
||||
VAL3 = 3,
|
||||
}
|
||||
|
||||
fn void main() {}
|
||||
Reference in New Issue
Block a user