From afb046316a15a2c3702b1f056456b58e9356e693 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 15 Jan 2026 17:54:59 +0800 Subject: Added const attributes. --- spec/outputs/codes_from_doc.lua | 60 ++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 22 deletions(-) (limited to 'spec/outputs/codes_from_doc.lua') diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 84dfc4e..1df7cef 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua @@ -408,17 +408,6 @@ local tb = { } } } -do - local print = print - local math = math - print("hello") - math.random(3) -end -do - local print = print - print(FLAG) - FLAG = 123 -end do local insert, concat = table.insert, table.concat local C, Ct, Cmt @@ -452,6 +441,25 @@ do local _obj_0 = require("export") one, two, ch = _obj_0[1], _obj_0[2], _obj_0.Something.umm[1] end +do + local tostring = tostring + local concat = table.concat + print(concat({ + "a", + tostring(1) + })) +end +do + local print = print + local math = math + print("hello") + math.random(3) +end +do + local print = print + print(FLAG) + FLAG = 123 +end local _module_0 = { } local a, b, c = 1, 2, 3 _module_0["a"], _module_0["b"], _module_0["c"] = a, b, c @@ -2927,17 +2935,6 @@ local tb = { } } } -do - local print = print - local math = math - print("hello") - math.random(3) -end -do - local print = print - print(FLAG) - FLAG = 123 -end do local insert, concat = table.insert, table.concat local C, Ct, Cmt @@ -2971,6 +2968,25 @@ do local _obj_0 = require("export") one, two, ch = _obj_0[1], _obj_0[2], _obj_0.Something.umm[1] end +do + local tostring = tostring + local concat = table.concat + print(concat({ + "a", + tostring(1) + })) +end +do + local print = print + local math = math + print("hello") + math.random(3) +end +do + local print = print + print(FLAG) + FLAG = 123 +end local _module_0 = { } local a, b, c = 1, 2, 3 _module_0["a"], _module_0["b"], _module_0["c"] = a, b, c -- cgit v1.2.3-55-g6feb