diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-06-12 00:16:35 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-06-12 00:16:35 +0800 |
| commit | 1fa4049fc55986af8615ea836a60ac8cae255ad6 (patch) | |
| tree | ba2e35613b32ca3bd46f6d6ff932de2a457328ea /spec/outputs | |
| parent | 4350d4b094c2c7202b7ad79d15187c1402bd13eb (diff) | |
| download | yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.gz yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.tar.bz2 yuescript-1fa4049fc55986af8615ea836a60ac8cae255ad6.zip | |
fix issue #105.
Diffstat (limited to 'spec/outputs')
| -rw-r--r-- | spec/outputs/with.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua index f172b01..9dcaca3 100644 --- a/spec/outputs/with.lua +++ b/spec/outputs/with.lua | |||
| @@ -165,6 +165,32 @@ do | |||
| 165 | end | 165 | end |
| 166 | do | 166 | do |
| 167 | do | 167 | do |
| 168 | local _with_0 = tb | ||
| 169 | do | ||
| 170 | local _obj_0 = _with_0[2] | ||
| 171 | if _obj_0 ~= nil then | ||
| 172 | _with_0[1] = _obj_0:func() | ||
| 173 | end | ||
| 174 | end | ||
| 175 | _with_0["%a-b-c%"] = 123 | ||
| 176 | _with_0[ [[x y z]]] = _with_0[var] | ||
| 177 | print(_with_0[_with_0[3]]) | ||
| 178 | do | ||
| 179 | local _with_1 = _with_0[4] | ||
| 180 | _with_1[1] = 1 | ||
| 181 | end | ||
| 182 | _with_0[#_with_0 + 1] = "abc" | ||
| 183 | _with_0[#_with_0 + 1] = { | ||
| 184 | type = "hello", | ||
| 185 | { | ||
| 186 | name = "xyz", | ||
| 187 | value = 998 | ||
| 188 | } | ||
| 189 | } | ||
| 190 | end | ||
| 191 | end | ||
| 192 | do | ||
| 193 | do | ||
| 168 | local _with_0 = SolidRect({ | 194 | local _with_0 = SolidRect({ |
| 169 | width = w, | 195 | width = w, |
| 170 | height = h, | 196 | height = h, |
