Enum member names and values must be unique

This commit is contained in:
2022-10-14 04:00:05 -04:00
parent dd29f69213
commit 2669a04857
5 changed files with 90 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
:arf
require '../typeSection'
---
enum ro aWeekday:Int
@@ -12,9 +13,7 @@ enum ro aWeekday:Int
type ro bColor:U32
enum ro cNamedColor:bColor
- red 0xFF0000
- green 0x00FF00
- blue 0x0000FF
type ro X:cNamedColor
# enum ro cNamedColor:bColor
# - red 0xFF0000
# - green 0x00FF00
# - blue 0x0000FF