diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-08-19 01:29:47 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-08-19 01:29:47 +0300 |
commit | fc858927f037a3218859cf6be4e97f0976433805 (patch) | |
tree | ad6dc1ca2a9add6881947a0aa8e8ab687f67b8f8 /tests/compile | |
parent | f760bc243b957ec8ebb529b9eadea53fc93adca5 (diff) | |
download | Nim-fc858927f037a3218859cf6be4e97f0976433805.tar.gz |
Revert "Revert "fix tforwardgeneric""
This reverts commit e3f93241c3824e49b69c647bbd44726a79e8f8f8.
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/tforwardgeneric.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/compile/tforwardgeneric.nim b/tests/compile/tforwardgeneric.nim index ef263d733..c5943b966 100644 --- a/tests/compile/tforwardgeneric.nim +++ b/tests/compile/tforwardgeneric.nim @@ -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 |