blob: bae0fb1853ef99e534ebb33139d1a6bc135894ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
discard """
errormsg: "type mismatch: got <int literal(3)>"
file: "tinout.nim"
line: 12
"""
# Test in out checking for parameters
proc abc(x: var int) =
x = 0
proc b() =
abc(3) #ERROR
b()
|