parent
2c05c772ca
commit
b189b24a4f
5 changed files with 28 additions and 2 deletions
18
tests/compiler_tests.nim
Normal file
18
tests/compiler_tests.nim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
include karaxprelude
|
||||
|
||||
block:
|
||||
type
|
||||
TestEnum {.pure.} = enum
|
||||
ValA, ValB
|
||||
|
||||
var e = TestEnum.ValA
|
||||
|
||||
proc renderDom(): VNode {.used.} =
|
||||
result = buildHtml():
|
||||
tdiv():
|
||||
case e
|
||||
of TestEnum.ValA:
|
||||
tdiv: text "A"
|
||||
of TestEnum.ValB:
|
||||
tdiv: text "B"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue