summary refs log tree commit diff stats
path: root/tests/accept/run/tnestprc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/tnestprc.nim')
-rw-r--r--tests/accept/run/tnestprc.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/accept/run/tnestprc.nim b/tests/accept/run/tnestprc.nim
new file mode 100644
index 000000000..b7326e032
--- /dev/null
+++ b/tests/accept/run/tnestprc.nim
@@ -0,0 +1,10 @@
+# Test nested procs without closures
+
+proc Add3(x: int): int = 
+  proc add(x, y: int): int {.noconv.} = 
+    result = x + y
+    
+  result = add(x, 3)
+  
+echo Add3(7) #OUT 10
+