diff options
author | Araq <rumpf_a@web.de> | 2012-11-23 19:52:32 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-23 19:52:32 +0100 |
commit | 019d6e4127a1dbe7ba8be4cc40c3c9358b1c48b3 (patch) | |
tree | 5db59c762fddd1048e8be437fec60d413ed10047 /tests/run | |
parent | 4bef5a7a78981bc8f5b8b3bd3f8c1c9de8533bb5 (diff) | |
download | Nim-019d6e4127a1dbe7ba8be4cc40c3c9358b1c48b3.tar.gz |
added missing type flags
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/tinterf.nim | 6 |
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() |