summary refs log tree commit diff stats
path: root/tests/implicit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/implicit')
0 files changed, 0 insertions, 0 deletions
=devel&id=abc844733157441ed5a1aee23476e55c2fcd8a83'>^
1105d0364 ^

a690e7b26 ^
e80465dac ^
















32a5d4baf ^

3ba3307d6 ^
32a5d4baf ^
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
           

           
 

   
   
















                                

           
                     
        
discard """
output: '''
hallo40
1
2
'''
"""
# test for extremely strange bug

proc ack(x: int, y: int): int =
  if x != 0:
    if y != 5:
      return y
    return x
  return x+y

proc gen[T](a: T) =
  write(stdout, a)


gen("hallo")
write(stdout, ack(5, 4))
#OUT hallo4

# bug #1442
let h=3
for x in 0 ..< h.int:
  echo x