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:
@@ -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