diff options
author | Li Jin <dragon-fly@qq.com> | 2024-03-19 02:22:56 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-03-19 02:22:56 +0800 |
commit | afc86619d710a578dc3f2bfc2ee1d62913f9abe8 (patch) | |
tree | 726ffe4d33bbaf8be411f73add51a1ffe734bc6f /spec/outputs/assign.lua | |
parent | 4f399a181dc773bcc1a86737522915c2c776fb2b (diff) | |
download | yuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.tar.gz yuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.tar.bz2 yuescript-afc86619d710a578dc3f2bfc2ee1d62913f9abe8.zip |
try fixing issue #162.
Diffstat (limited to 'spec/outputs/assign.lua')
-rw-r--r-- | spec/outputs/assign.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/outputs/assign.lua b/spec/outputs/assign.lua index 228e859..8bf7b35 100644 --- a/spec/outputs/assign.lua +++ b/spec/outputs/assign.lua | |||
@@ -42,11 +42,14 @@ do | |||
42 | end | 42 | end |
43 | end | 43 | end |
44 | end | 44 | end |
45 | return _(function() | 45 | local _anon_func_0 = function(print) |
46 | setmetatable(a, (function() | 46 | do |
47 | print(123) | 47 | print(123) |
48 | return { } | 48 | return { } |
49 | end)()) | 49 | end |
50 | end | ||
51 | return _(function() | ||
52 | setmetatable(a, _anon_func_0(print)) | ||
50 | do | 53 | do |
51 | local a, b | 54 | local a, b |
52 | if "a" == c then | 55 | if "a" == c then |