diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-03-23 17:25:28 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-03-23 17:25:28 +0800 |
| commit | 08b68269ff6d6f868242dcefce75e1db26e4de61 (patch) | |
| tree | 3c63e851edc5baa49ad0d180021c2ddecd77f013 /spec/outputs/class.lua | |
| parent | 28bae6517f43c384a828df62b727517e26b3af9b (diff) | |
| download | yuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.tar.gz yuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.tar.bz2 yuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.zip | |
Fixed issue #198.
Diffstat (limited to 'spec/outputs/class.lua')
| -rw-r--r-- | spec/outputs/class.lua | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/spec/outputs/class.lua b/spec/outputs/class.lua index aaea33c..07efde4 100644 --- a/spec/outputs/class.lua +++ b/spec/outputs/class.lua | |||
| @@ -1231,30 +1231,28 @@ do | |||
| 1231 | end | 1231 | end |
| 1232 | do | 1232 | do |
| 1233 | local CX | 1233 | local CX |
| 1234 | do | 1234 | local _class_0 |
| 1235 | local _class_0 | 1235 | local _base_0 = { } |
| 1236 | local _base_0 = { } | 1236 | if _base_0.__index == nil then |
| 1237 | if _base_0.__index == nil then | 1237 | _base_0.__index = _base_0 |
| 1238 | _base_0.__index = _base_0 | ||
| 1239 | end | ||
| 1240 | _class_0 = setmetatable({ | ||
| 1241 | __init = function(self) end, | ||
| 1242 | __base = _base_0, | ||
| 1243 | __name = "CX" | ||
| 1244 | }, { | ||
| 1245 | __index = _base_0, | ||
| 1246 | __call = function(cls, ...) | ||
| 1247 | local _self_0 = setmetatable({ }, _base_0) | ||
| 1248 | cls.__init(_self_0, ...) | ||
| 1249 | return _self_0 | ||
| 1250 | end | ||
| 1251 | }) | ||
| 1252 | _base_0.__class = _class_0 | ||
| 1253 | local self = _class_0; | ||
| 1254 | xa = 1 | ||
| 1255 | xb = 1 | ||
| 1256 | CX = _class_0 | ||
| 1257 | end | 1238 | end |
| 1239 | _class_0 = setmetatable({ | ||
| 1240 | __init = function(self) end, | ||
| 1241 | __base = _base_0, | ||
| 1242 | __name = "CX" | ||
| 1243 | }, { | ||
| 1244 | __index = _base_0, | ||
| 1245 | __call = function(cls, ...) | ||
| 1246 | local _self_0 = setmetatable({ }, _base_0) | ||
| 1247 | cls.__init(_self_0, ...) | ||
| 1248 | return _self_0 | ||
| 1249 | end | ||
| 1250 | }) | ||
| 1251 | _base_0.__class = _class_0 | ||
| 1252 | local self = _class_0; | ||
| 1253 | xa = 1 | ||
| 1254 | xb = 1 | ||
| 1255 | CX = _class_0 | ||
| 1258 | end | 1256 | end |
| 1259 | do | 1257 | do |
| 1260 | local CY | 1258 | local CY |
