diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-01-20 12:47:25 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-01-20 12:47:25 +0000 |
commit | b9d75f894401afcbc98081167555715a95e67d43 (patch) | |
tree | b83a370cd1e3d8d563e184f3dd676bdac54e9335 /tests/run | |
parent | 9257c29ffd68fffd61c68061318ca52bb8324b4c (diff) | |
download | Nim-b9d75f894401afcbc98081167555715a95e67d43.tar.gz |
Fixed a bug with the 'do notation' consuming statements after it.
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/tdomulttest.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run/tdomulttest.nim b/tests/run/tdomulttest.nim new file mode 100644 index 000000000..76ab0963c --- /dev/null +++ b/tests/run/tdomulttest.nim @@ -0,0 +1,17 @@ +discard """ + file: "tasynciossl.nim" + cmd: "nimrod cc --hints:on --define:ssl $# $#" + output: "555\ntest\nmulti lines\n99999999\nend" +""" +proc foo(bar, baz: proc (x: int): int) = + echo bar(555) + echo baz(99999999) + +foo do (x: int) -> int: + return x +do (x: int) -> int: + echo("test") + echo("multi lines") + return x + +echo("end") \ No newline at end of file |