summary refs log blame commit diff stats
path: root/tests/parser/tcommand_as_expr.nim
blob: f6868a2fc7d9e841cca42b447a15ad97004d89dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                  
discard """
  output: "12"
"""

proc foo(x: int): int = x-1
proc foo(x, y: int): int = x-y

let x = foo 7.foo,  # comment here
            foo(1, foo 8)
#  12 =       6     -     -6
echo x