mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- foo[x][y] = b now interpreted as (*&foo[x])[y] = b which allows overloads to do chained [] accesses.
This commit is contained in:
@@ -111,7 +111,7 @@ fn void test_ref()
|
||||
t.init(tmem);
|
||||
(&t["a"]).init(tmem);
|
||||
|
||||
(*&t["a"])["b"] = "ab";
|
||||
t["a"]["b"] = "ab";
|
||||
test::eq("ab", t["a"]["b"]!!);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user