summary refs log tree commit diff stats
path: root/tests/ambsym/mambsym1.nim
Commit message (Expand)AuthorAgeFilesLines
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-10/+10
* Changed tests and tools to use 'discard' statements instead of 'nil' for empt...Clay Sweetser2014-02-151-1/+1
* new tester; all tests categorizedAraq2014-01-131-0/+10
lambdalifting; preparations for a better testing framework' href='/ahoang/Nim/commit/tests/compile/tforwardgeneric.nim?h=devel&id=9257c29ffd68fffd61c68061318ca52bb8324b4c'>9257c29ff ^
76c3b314d ^
6781da521 ^






fc858927f ^

6781da521 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           
                                     
                         
                  






                              

                    
 
discard """
  output: "1.1000000000000001e+00 11"
  ccodecheck: "!@'ClEnv'"
  disabled: "true"
"""

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