mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* update grammar * implementation * tests * docs and core-changes * cleanup old .cot files * add error on duplicate class, enum class definition; tests * Fix compiler warnings * add test for unscoped identifier failure
8 lines
144 B
Text
8 lines
144 B
Text
enum class MyEnum
|
|
FOO := 1,
|
|
FOO := 2, // Ignored, redefinition
|
|
BAR := 3,
|
|
endenum
|
|
|
|
print(MyEnum::FOO); // 1
|
|
print(MyEnum::BAR); // 3
|