parent
f760bc243b
commit
fc858927f0
4 changed files with 8 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
output: "1.0000000000000000e+00 10"
|
||||
output: "1.1000000000000001e+00 11"
|
||||
ccodecheck: "!@'ClEnv'"
|
||||
"""
|
||||
|
||||
|
|
@ -8,5 +8,6 @@ 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
|
||||
let c = b
|
||||
result = a + b + c
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue