Files
Nim/tests/compile/tforwardgeneric.nim
Zahary Karadjov fc858927f0 Revert "Revert "fix tforwardgeneric""
This reverts commit e3f93241c3.
2013-08-19 01:29:47 +03:00

14 lines
194 B
Nim

discard """
output: "1.1000000000000001e+00 11"
ccodecheck: "!@'ClEnv'"
"""
proc p[T](a, b: T): T
echo p(0.9, 0.1), " ", p(9, 1)
proc p[T](a, b: T): T =
let c = b
result = a + b + c