mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Deprecate MyEnum.elements.
This commit is contained in:
@@ -6,7 +6,7 @@ enum MyEnum : short
|
||||
BYE
|
||||
}
|
||||
|
||||
int myenum_elements = MyEnum.elements;
|
||||
int myenum_elements = MyEnum.values.len;
|
||||
int myenum_alignof = MyEnum.alignof;
|
||||
int myenum_sizeof = MyEnum.sizeof;
|
||||
|
||||
|
||||
@@ -129,9 +129,9 @@ fn void main()
|
||||
}
|
||||
list.free();
|
||||
|
||||
printf("Elements: %d\n", (int)(MyEnum.elements));
|
||||
printf("Elements: %d\n", (int)(MyEnum.values.len));
|
||||
|
||||
int elements = MyEnum.elements;
|
||||
int elements = MyEnum.values.len;
|
||||
printf("Hello\n");
|
||||
IntArray array;
|
||||
array.push(100);
|
||||
|
||||
@@ -131,9 +131,9 @@ fn void main()
|
||||
}
|
||||
list.free();
|
||||
|
||||
printf("Elements: %d\n", (int)(MyEnum.elements));
|
||||
printf("Elements: %d\n", (int)(MyEnum.values.len));
|
||||
|
||||
int elements = MyEnum.elements;
|
||||
int elements = MyEnum.values.len;
|
||||
printf("Hello\n");
|
||||
IntArray array;
|
||||
array.push(100);
|
||||
|
||||
Reference in New Issue
Block a user