mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Constant shifting incorrectly doesn't flatten the underlying vector base #2825
- String not set as attributes resolved breaking has_tagof #2824 - Self referencing forward resolved const enum fails to be properly detected #2823
This commit is contained in:
11
test/test_suite/enumerations/const_enum_self_ref.c3
Normal file
11
test/test_suite/enumerations/const_enum_self_ref.c3
Normal file
@@ -0,0 +1,11 @@
|
||||
enum MyEnum : const
|
||||
{
|
||||
VAL1 = VAL3, // #error: Unable to properly resolve enum constant value, this can sometimes happen in recursive definitions
|
||||
VAL2 ,
|
||||
VAL3
|
||||
}
|
||||
|
||||
fn int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user