mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- New const enum declaration syntax.
- New enum associated value syntax.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
enum Test : int (int kindof, int qnameof)
|
||||
{
|
||||
FOO = {1, 2}
|
||||
FOO {1, 2}
|
||||
}
|
||||
|
||||
enum Test2 : (int a, int nameof) // #error: 'nameof' is not a valid parameter name for enums
|
||||
{
|
||||
FOO = {1, 2}
|
||||
FOO {1, 2}
|
||||
}
|
||||
|
||||
enum Test3 : (int a, int ordinal) // #error: 'ordinal' is not a valid parameter name for enums
|
||||
{
|
||||
FOO = {1, 2}
|
||||
FOO {1, 2}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user