diff options
author | Araq <rumpf_a@web.de> | 2014-02-17 23:59:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-02-17 23:59:48 +0100 |
commit | 9b63fccf16048121d79fc825107ea7433faa25e7 (patch) | |
tree | 7786c489c36b5ba58d90ab4d52a798c0362fed12 /tests/generics/tgenericlambda.nim | |
parent | 420d4197f139c277f7b7d0eaf462ed0fe9e00745 (diff) | |
parent | eaab22089da855163485949d8bd6a6ae9c1d25c8 (diff) | |
download | Nim-9b63fccf16048121d79fc825107ea7433faa25e7.tar.gz |
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Diffstat (limited to 'tests/generics/tgenericlambda.nim')
-rw-r--r-- | tests/generics/tgenericlambda.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/generics/tgenericlambda.nim b/tests/generics/tgenericlambda.nim new file mode 100644 index 000000000..a71c592c5 --- /dev/null +++ b/tests/generics/tgenericlambda.nim @@ -0,0 +1,10 @@ +discard """ + output: "10\n10" +""" + +proc test(x: proc (a, b: int): int) = + echo x(5, 5) + +test(proc (a, b): auto = a + b) + +test do (a, b) -> auto: a + b |