aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/with.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-03-14 13:46:17 +0800
committerLi Jin <dragon-fly@qq.com>2022-03-14 13:46:17 +0800
commit0055f2fdb169788a7796821d20c7fba2230ea9ae (patch)
tree24ecbf48a03e2d4690a51d66e087f4585d196754 /spec/outputs/with.lua
parent985761356280bf8625a6568dd83822aae83edc8f (diff)
downloadyuescript-0055f2fdb169788a7796821d20c7fba2230ea9ae.tar.gz
yuescript-0055f2fdb169788a7796821d20c7fba2230ea9ae.tar.bz2
yuescript-0055f2fdb169788a7796821d20c7fba2230ea9ae.zip
fix more cases that global values are not being cached.
Diffstat (limited to 'spec/outputs/with.lua')
-rw-r--r--spec/outputs/with.lua37
1 files changed, 33 insertions, 4 deletions
diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua
index e1497c6..f172b01 100644
--- a/spec/outputs/with.lua
+++ b/spec/outputs/with.lua
@@ -157,8 +157,37 @@ do
157 end 157 end
158end 158end
159do 159do
160 local _with_0 = dad 160 do
161 _with_0["if"]("yes") 161 local _with_0 = dad
162 local y = _with_0["end"].of["function"] 162 _with_0["if"]("yes")
163 return _with_0 163 local y = _with_0["end"].of["function"]
164 end
165end
166do
167 do
168 local _with_0 = SolidRect({
169 width = w,
170 height = h,
171 color = 0x66000000
172 })
173 mask = _with_0
174 if _with_0 ~= nil then
175 _with_0.touchEnabled = true
176 _with_0.swallowTouches = true
177 end
178 end
179end
180do
181 do
182 local mask = SolidRect({
183 width = w,
184 height = h,
185 color = 0x66000000
186 })
187 if mask ~= nil then
188 mask.touchEnabled = true
189 mask.swallowTouches = true
190 end
191 end
164end 192end
193return nil