aboutsummaryrefslogtreecommitdiff
path: root/core/collections.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/collections.nom')
-rw-r--r--core/collections.nom2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/collections.nom b/core/collections.nom
index 8dbc79d..3877d31 100644
--- a/core/collections.nom
+++ b/core/collections.nom
@@ -149,6 +149,8 @@ test:
assume ("\%t" == "XXX")
compile [set %dict 's metatable to %metatable] to (..)
Lua "setmetatable(\(%dict as lua expr), \(%metatable as lua expr));"
+compile [%'s metatable, %' metatable] to (..)
+ Lua value "getmetatable(\(% as lua expr))"
test:
assume (({} with fallback % -> (% + 1)).10 == 11)