Files
Nim/tests/js/treprinifexpr.nim
flywind 80b0748d75 fix #15651 (#15800)
* fix

* minor
2020-10-31 12:06:13 +01:00

18 lines
284 B
Nim

type
Enum = enum A
let
enumVal = A
tmp = if true: $enumVal else: $enumVal
let
intVal = 12
tmp2 = if true: repr(intVal) else: $enumVal
let
strVal = "123"
tmp3 = if true: repr(strVal) else: $strVal
let
floatVal = 12.4
tmp4 = if true: repr(floatVal) else: $floatVal