improvements to get code size down for programs that don't use GC

This commit is contained in:
Araq 2011-06-26 20:17:19 +02:00
commit e25384db89
18 changed files with 642 additions and 181 deletions

18
tests/reject/tprocvar.nim Normal file
View file

@ -0,0 +1,18 @@
discard """
errormsg: "type mismatch"
line: 17
file: "tprocvar.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)