summary refs log tree commit diff stats
path: root/nimpretty/tests/simple.nim
blob: 2a01a176ef23879b7fac82a54fc83b1212d96ac1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var x: int = 2

echo x
# bug #9144

proc a() =
  while true:
    discard
    # comment 1

  # comment 2
  discard

# bug #15596
discard## comment 3

discard # comment 4


# bug #20553

let `'hello` = 12
echo `'hello`


proc `'u4`(n: string) =
  # The leading ' is required.
  discard