summary refs log tree commit diff stats
path: root/tests/js/treprinifexpr.nim
blob: 09ded18b9e4d5640c65af983afbc360292be4c53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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