1#unittest {
2	name: "Custom load/store";
3	error: NONE;
4	result: "bar";
5};
6
7class A {
8    private var storage;
9
10    func init() {
11        storage = [:];
12    }
13    func storeat(key, value) {
14        storage[key] = value;
15    }
16
17    func loadat(key) {
18        return storage[key];
19    }
20}
21
22func main() {
23    var inst = A();
24    inst["foo"] = "bar";
25    return inst["foo"];
26}