diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 16:14:28 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-12 16:14:28 +0300 |
commit | 1d29d24465ddb9aaea18558f221ff67bf82db0c7 (patch) | |
tree | 8beb534b4a6f0fecd62b5d92ce9041cdf253798b /tests/compile | |
parent | 14b5d5f2622b8ed4625fc7c010be2b627381693d (diff) | |
download | Nim-1d29d24465ddb9aaea18558f221ff67bf82db0c7.tar.gz |
documented the ``noforward`` pragma
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/tnoforward.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/compile/tnoforward.nim b/tests/compile/tnoforward.nim new file mode 100644 index 000000000..0359ff348 --- /dev/null +++ b/tests/compile/tnoforward.nim @@ -0,0 +1,10 @@ +{. noforward: on .} + +proc foo(x: int) = + bar x + +proc bar(x: int) = + echo x + +foo(10) + |