diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-20 22:08:03 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-04-20 22:08:03 +0100 |
commit | dad99376a55e61f83606956a0c1cab289387d1d5 (patch) | |
tree | 76b4d112ab30638657ec37b6bb5dd03ed297e9fa /tests | |
parent | 57cc8237f72b26cb56f8f250e382f8a0e091aea1 (diff) | |
download | Nim-dad99376a55e61f83606956a0c1cab289387d1d5.tar.gz |
Param name and type combos now work in type sig. sugar.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/closure/tclosuremacro.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/closure/tclosuremacro.nim b/tests/closure/tclosuremacro.nim index 008078bbb..12e463316 100644 --- a/tests/closure/tclosuremacro.nim +++ b/tests/closure/tclosuremacro.nim @@ -5,6 +5,7 @@ discard """ 3 3 noReturn +6 ''' """ @@ -36,8 +37,7 @@ echo doWithOneAndTwo((x, y) => x + y) noReturn(() -> void => echo("noReturn")) -when false: - proc pass2(f: (int, int) -> int): (int) -> int = - (x: int) -> int => f(2, x) +proc pass2(f: (int, int) -> int): (int) -> int = + (x: int) -> int => f(2, x) - #echo pass2((x, y) => x + y) +echo pass2((x, y) => x + y)(4) |