summaryrefslogtreecommitdiff
path: root/test/definition/bug.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-02 20:31:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-02 20:31:35 +0800
commitbe0d11df2d89b8cb8cf24190ccfbd273256f4c74 (patch)
tree328597311c655f39bc43c9bcb963a4fd7491a65c /test/definition/bug.lua
parent4508b4018dced01fe5420e008e813199d0ce856f (diff)
downloadlua-language-server-be0d11df2d89b8cb8cf24190ccfbd273256f4c74.zip
update
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r--test/definition/bug.lua42
1 files changed, 20 insertions, 22 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index 77797f40..ef7295d1 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -134,7 +134,7 @@ t:<?add?>()
TEST [[
local t = {}
-t.<!f1!> = 1
+t.f1 = 1
t.<!f2!> = t.f1
print(t.<?f2?>)
@@ -142,9 +142,9 @@ print(t.<?f2?>)
TEST [[
local t = {}
-t.<!f1!> = 1
+t.f1 = 1
t.<!f2!> = t.f1
-t.<!f1!> = t.f2
+t.f1 = t.f2
print(t.<?f2?>)
]]
@@ -172,67 +172,65 @@ string.xx:<?format?>()
--v.<?bar1?>
--]]
-config.set(nil, 'Lua.IntelliSense.traceLocalSet', true)
TEST [[
local A, B
function A:get1()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get2()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get3()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get4()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get5()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get6()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get7()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function A:get8()
- local <!a!> = B:get()
+ local a = B:get()
return a
end
function B:get()
- local <!b!>
- <!b!> = A:get1()
- <!b!> = A:get2()
- <!b!> = A:get3()
- <!b!> = A:get4()
- <!b!> = A:get5()
- <!b!> = A:get6()
- <!b!> = A:get7()
- <!b!> = A:get8()
+ local b
+ b = A:get1()
+ b = A:get2()
+ b = A:get3()
+ b = A:get4()
+ b = A:get5()
+ b = A:get6()
+ b = A:get7()
+ b = A:get8()
return b
end
local <!b!> = B:get()
print(<?b?>)
]]
-config.set(nil, 'Lua.IntelliSense.traceLocalSet', false)
TEST [[
g[a.b.c] = 1