summary refs log blame commit diff stats
path: root/tests/compile/tforwardgeneric.nim
blob: 84bef15cc8d27f34af4aa08f957b6c1af83e2654 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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