summary refs log blame commit diff stats
path: root/tests/misc/tinout.nim
blob: 0b2a54d9f5f91a379cdf42456da36e66846c04a0 (plain) (tree)
1
2
3
4
5


                    
                                                 
   








                                     

 
discard """
  file: "tinout.nim"
  line: 12
  errormsg: "type mismatch: got (int literal(3))"
"""
# Test in out checking for parameters

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

proc b() =
    abc(3) #ERROR

b()