mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
* merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
19 lines
213 B
Nim
19 lines
213 B
Nim
discard """
|
|
errormsg: "type mismatch"
|
|
line: 17
|
|
file: "tprocvarmismatch.nim"
|
|
"""
|
|
|
|
type
|
|
TCallback = proc (a, b: int)
|
|
|
|
proc huh(x, y: var int) =
|
|
x = 0
|
|
y = x+1
|
|
|
|
proc so(c: TCallback) =
|
|
c(2, 4)
|
|
|
|
so(huh)
|
|
|