parent
ebb15505dd
commit
51cd3bd86f
9 changed files with 95 additions and 27 deletions
10
tests/js/tbasicenum.nim
Normal file
10
tests/js/tbasicenum.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
output: "ABCDC"
|
||||
"""
|
||||
|
||||
type
|
||||
MyEnum = enum
|
||||
A,B,C,D
|
||||
# trick the optimizer with an seq:
|
||||
var x = @[A,B,C,D]
|
||||
echo x[0],x[1],x[2],x[3],MyEnum(2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue