- foo[x][y] = b now interpreted as (*&foo[x])[y] = b which allows overloads to do chained [] accesses.

This commit is contained in:
Christoffer Lerno
2025-08-19 01:57:51 +02:00
parent de09a19a48
commit 551ce34b9b
5 changed files with 85 additions and 62 deletions

View File

@@ -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"]!!);
}