diff options
author | Araq <rumpf_a@web.de> | 2012-10-06 22:46:41 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-10-06 22:46:41 +0200 |
commit | 70fa5a6df0dfc3cbe1e046736651788a5fc490af (patch) | |
tree | ffeea5c53e61c040bc26c37ca9f54c432b8eb705 /tests/compile | |
parent | a85b5797184065f1b007fad93b2d27c91f2632e9 (diff) | |
download | Nim-70fa5a6df0dfc3cbe1e046736651788a5fc490af.tar.gz |
attempt to fix #183
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/mdefaultprocparam.nim | 5 | ||||
-rw-r--r-- | tests/compile/tdefaultprocparam.nim | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/compile/mdefaultprocparam.nim b/tests/compile/mdefaultprocparam.nim new file mode 100644 index 000000000..4a17277c0 --- /dev/null +++ b/tests/compile/mdefaultprocparam.nim @@ -0,0 +1,5 @@ + + +proc p*(f = (proc(): string = "hi")) = + echo f() + diff --git a/tests/compile/tdefaultprocparam.nim b/tests/compile/tdefaultprocparam.nim new file mode 100644 index 000000000..23ecf72e9 --- /dev/null +++ b/tests/compile/tdefaultprocparam.nim @@ -0,0 +1,4 @@ + +import mdefaultprocparam + +p() |