bugfix: forwarding of generic procs now works

This commit is contained in:
Araq 2011-07-30 10:42:51 +02:00
commit 6781da5215
8 changed files with 70 additions and 43 deletions

View file

@ -0,0 +1,11 @@
discard """
output: "1.0000000000000000e+00 10"
"""
proc p[T](a, b: T): T
echo p(0.9, 0.1), " ", p(9, 1)
proc p[T](a, b: T): T =
result = a + b