diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-22 01:06:44 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-22 01:07:06 +0800 |
| commit | 042c393a4ce4454948b69e99f0fc721736403208 (patch) | |
| tree | 657043c6e3c899cd86c6b30fc304fc4e9228804a /spec/outputs/whitespace.lua | |
| parent | 5368d22d4bbb36682766688a7387622953a0069c (diff) | |
| download | yuescript-042c393a4ce4454948b69e99f0fc721736403208.tar.gz yuescript-042c393a4ce4454948b69e99f0fc721736403208.tar.bz2 yuescript-042c393a4ce4454948b69e99f0fc721736403208.zip | |
Cleanup.
Diffstat (limited to 'spec/outputs/whitespace.lua')
| -rw-r--r-- | spec/outputs/whitespace.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/outputs/whitespace.lua b/spec/outputs/whitespace.lua index 864f085..60e98bb 100644 --- a/spec/outputs/whitespace.lua +++ b/spec/outputs/whitespace.lua | |||
| @@ -107,4 +107,37 @@ for i = 1, 10, -1 do | |||
| 107 | print(i) | 107 | print(i) |
| 108 | end | 108 | end |
| 109 | local a, b, c | 109 | local a, b, c |
| 110 | do | ||
| 111 | local tb = { | ||
| 112 | a = 1, | ||
| 113 | b = function() end | ||
| 114 | } | ||
| 115 | local tb2 = { | ||
| 116 | a = 1, | ||
| 117 | b = function() end | ||
| 118 | } | ||
| 119 | local tb3 | ||
| 120 | local _class_0 | ||
| 121 | local _base_0 = { | ||
| 122 | a = 1, | ||
| 123 | b = function() end | ||
| 124 | } | ||
| 125 | if _base_0.__index == nil then | ||
| 126 | _base_0.__index = _base_0 | ||
| 127 | end | ||
| 128 | _class_0 = setmetatable({ | ||
| 129 | __init = function() end, | ||
| 130 | __base = _base_0, | ||
| 131 | __name = "tb3" | ||
| 132 | }, { | ||
| 133 | __index = _base_0, | ||
| 134 | __call = function(cls, ...) | ||
| 135 | local _self_0 = setmetatable({ }, _base_0) | ||
| 136 | cls.__init(_self_0, ...) | ||
| 137 | return _self_0 | ||
| 138 | end | ||
| 139 | }) | ||
| 140 | _base_0.__class = _class_0 | ||
| 141 | tb3 = _class_0 | ||
| 142 | end | ||
| 110 | return nil | 143 | return nil |
