aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/attrib.yue
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-03-19 02:22:56 +0800
committerLi Jin <dragon-fly@qq.com>2024-03-19 02:22:56 +0800
commitafc86619d710a578dc3f2bfc2ee1d62913f9abe8 (patch)
tree726ffe4d33bbaf8be411f73add51a1ffe734bc6f /spec/inputs/attrib.yue
parent4f399a181dc773bcc1a86737522915c2c776fb2b (diff)
downloadyuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.tar.gz
yuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.tar.bz2
yuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.zip
try fixing issue #162.
Diffstat (limited to 'spec/inputs/attrib.yue')
-rw-r--r--spec/inputs/attrib.yue2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/inputs/attrib.yue b/spec/inputs/attrib.yue
index 36aca99..f66f0db 100644
--- a/spec/inputs/attrib.yue
+++ b/spec/inputs/attrib.yue
@@ -41,6 +41,8 @@ do
41 41
42 close _ = <close>: -> print "first" 42 close _ = <close>: -> print "first"
43 43
44 print "third"
45
44_defers = setmetatable {}, __close: => 46_defers = setmetatable {}, __close: =>
45 @[#@]! 47 @[#@]!
46 @[#@] = nil 48 @[#@] = nil