diff options
author | Li Jin <dragon-fly@qq.com> | 2025-05-26 15:52:07 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2025-05-26 15:52:07 +0800 |
commit | a9d28cb615d2bdc09d2482d5262951f2afc8d6e1 (patch) | |
tree | 0567dd183518ce5df596875b8267215ecf5a25ce /spec/outputs/codes_from_doc_zh.lua | |
parent | 4f301523563e80e838490cc6216a16bb3b8d6122 (diff) | |
download | yuescript-main.tar.gz yuescript-main.tar.bz2 yuescript-main.zip |
Diffstat (limited to '')
-rw-r--r-- | spec/outputs/codes_from_doc_zh.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index ecab077..399f8c1 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua | |||
@@ -2141,6 +2141,10 @@ do | |||
2141 | _with_1["key-name"] = value | 2141 | _with_1["key-name"] = value |
2142 | end | 2142 | end |
2143 | _with_0[#_with_0 + 1] = "abc" | 2143 | _with_0[#_with_0 + 1] = "abc" |
2144 | local _with_0 = obj | ||
2145 | if _with_0 ~= nil then | ||
2146 | print(obj.name) | ||
2147 | end | ||
2144 | do | 2148 | do |
2145 | local var = "hello" | 2149 | local var = "hello" |
2146 | print(var) | 2150 | print(var) |
@@ -4351,6 +4355,10 @@ do | |||
4351 | _with_1["key-name"] = value | 4355 | _with_1["key-name"] = value |
4352 | end | 4356 | end |
4353 | _with_0[#_with_0 + 1] = "abc" | 4357 | _with_0[#_with_0 + 1] = "abc" |
4358 | local _with_0 = obj | ||
4359 | if _with_0 ~= nil then | ||
4360 | print(obj.name) | ||
4361 | end | ||
4354 | do | 4362 | do |
4355 | local var = "hello" | 4363 | local var = "hello" |
4356 | print(var) | 4364 | print(var) |