summary refs log tree commit diff stats
path: root/tests/closure/tnestedclosure.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/closure/tnestedclosure.nim')
-rw-r--r--tests/closure/tnestedclosure.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/closure/tnestedclosure.nim b/tests/closure/tnestedclosure.nim
index 67e196f66..0628a6977 100644
--- a/tests/closure/tnestedclosure.nim
+++ b/tests/closure/tnestedclosure.nim
@@ -21,13 +21,13 @@ proc main(param: int) =
 # test simple closure within dummy 'main':
 proc dummy =
   proc main2(param: int) =
-    var foo = 23
+    var fooB = 23
     proc outer(outerParam: string) =
       var outerVar = 88
       echo outerParam, outerVar
       proc inner() =
         block Test:
-          echo foo, " ", param, outerParam, " ", outerVar
+          echo fooB, " ", param, outerParam, " ", outerVar
       inner()
     outer("foo")
   main2(24)