summary refs log tree commit diff stats
path: root/tests/iter/tcountup.nim
blob: 5f75e653ce9a52f36cec1dd5b960fc7e0545411c (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
discard """
  output: '''
0123456789
0.0
'''
"""

# Test new countup

for i in 0 ..< 10'i64:
  stdout.write(i)

echo()

# 11099

var
  x: uint32
  y: float

for i in 0 ..< x:
  if i == 1: echo i
  y += 1

echo y