summary refs log blame commit diff stats
path: root/tests/reject/tinout.nim
blob: 034c496f5b9543d6ccab09825becc45f6f31e795 (plain) (tree)
1
2
3
4
5
6
7
8




                                                              

                                      
                       





                  

 
discard """
  file: "tinout.nim"
  line: 12
  errormsg: "for a \'var\' type a variable needs to be passed"
"""
# Test in out checking for parameters

proc abc(x: var int) =
    x = 0

proc b() =
    abc(3) #ERROR

b()