summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-27 23:18:15 +0200
committerAraq <rumpf_a@web.de>2013-05-27 23:18:15 +0200
commite3f93241c3824e49b69c647bbd44726a79e8f8f8 (patch)
tree8a56266270506f483ba93c71ac34d491b6f2e4dd /tests
parent9c45e33d8c8b1a5f5fca69a467fda87b9b547057 (diff)
downloadNim-e3f93241c3824e49b69c647bbd44726a79e8f8f8.tar.gz
Revert "fix tforwardgeneric"
This reverts commit d82a032566de1612ff1ed2d82cc7ec2bd58267d7.
Diffstat (limited to 'tests')
-rw-r--r--tests/compile/tforwardgeneric.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/compile/tforwardgeneric.nim b/tests/compile/tforwardgeneric.nim
index c5943b966..ef263d733 100644
--- a/tests/compile/tforwardgeneric.nim
+++ b/tests/compile/tforwardgeneric.nim
@@ -1,5 +1,5 @@
 discard """
-  output: "1.1000000000000001e+00 11"
+  output: "1.0000000000000000e+00 10"
   ccodecheck: "!@'ClEnv'"
 """
 
@@ -8,6 +8,5 @@ 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
+  result  = a + b