aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/metatable.yue
diff options
context:
space:
mode:
Diffstat (limited to 'spec/inputs/metatable.yue')
-rw-r--r--spec/inputs/metatable.yue11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/inputs/metatable.yue b/spec/inputs/metatable.yue
index 13ea917..100844c 100644
--- a/spec/inputs/metatable.yue
+++ b/spec/inputs/metatable.yue
@@ -48,4 +48,15 @@ with tb
48 b = t#.close#.test 48 b = t#.close#.test
49 c = t #.close# .test 49 c = t #.close# .test
50 50
51#:mt = a
52a = #:mt
53a = #:__index:mt
54
55local index
56#:__index:index = a
57:index# = a
58
59do #:{new:ctor, :update} = a
60do {new:ctor, :update} = a.#
61
51nil 62nil