summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-03 17:54:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-03 17:54:20 +0800
commit34e9d5a1d5ec20ef180dfcc8085c6c3747d67a2e (patch)
tree2b9c424408cbb978d830b5c14f7a7d083161d3ca /test/diagnostics
parent30910942569804491d297053dbf51ccc761a2564 (diff)
downloadlua-language-server-34e9d5a1d5ec20ef180dfcc8085c6c3747d67a2e.zip
pass test
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/init.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index d1d0f68f..d6a1327c 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -306,7 +306,7 @@ Instance = _G[InstanceName]
]]
TEST [[
-(''):sub(1, 2)
+local _ = (''):sub(1, 2)
]]
TEST [=[
@@ -431,7 +431,7 @@ f(1, 2, 3, 4)
]]
TEST [[
-next({}, 1, <!2!>)
+local _ = next({}, 1, <!2!>)
print(1, 2, 3, 4, 5)
]]
@@ -463,7 +463,7 @@ f(1, 2, 3)
]]
TEST [[
-<!unpack!>()
+local _ = <!unpack!>()
]]
TEST [[
@@ -1353,8 +1353,8 @@ f()
TEST [[
---@type file*
local f
-f:read '*a'
-f:read('*a')
+local _ = f:read '*a'
+local _ = f:read('*a')
]]
TEST [[