blob: 46af2f5de39ead8003b46ff0c6fb0d21ea647d01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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()
|