summary refs log tree commit diff stats
path: root/tests/run/tinterf.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/tinterf.nim')
-rw-r--r--tests/run/tinterf.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run/tinterf.nim b/tests/run/tinterf.nim
index 648873da0..726fac9f6 100644
--- a/tests/run/tinterf.nim
+++ b/tests/run/tinterf.nim
@@ -9,12 +9,12 @@ type
     getter2: proc(): int {.closure.}]
 
 proc getInterf(): ITest =
-  var shared, shared2: int
+  var shared1, shared2: int
   
   return (setter: proc (x: int) = 
-            shared = x
+            shared1 = x
             shared2 = x + 10,
-          getter1: proc (): int = result = shared,
+          getter1: proc (): int = result = shared1,
           getter2: proc (): int = return shared2)
 
 var i = getInterf()