clever-lang/clever — Issue #145: Variable reseting value in function call
Author: felipensp
Created: 2012-02-29 16:23:01+00:00
State: open
Labels: Bug, Type

We have a bug when calling a function which fills a global Map variable. (reported by Pedro)

```
import std.io;

Map a;

Int f(String k, String v) {
a.insert(k, v);
}

f('foo', 'bar');
println(a.toString());

f('b', 'bar2');
println(a.toString());
```