summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-02-26 20:22:09 +0800
committerGitHub <noreply@github.com>2024-02-26 20:22:09 +0800
commita9629f9f8c615d189bcc389e912c0aefa4e65776 (patch)
treef90d06877b3944fff89dde073cc37c614f2d1ac8 /test/diagnostics
parentc156377201f70db009d8bcfcf664370ea3f0eec2 (diff)
parente03dc18930c7f8e92b2f685ff39271698903dae5 (diff)
downloadlua-language-server-a9629f9f8c615d189bcc389e912c0aefa4e65776.zip
Merge pull request #2541 from fesily/automatic-infer-function-param-type
update test
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/await-in-sync.lua2
-rw-r--r--test/diagnostics/redundant-parameter.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/diagnostics/await-in-sync.lua b/test/diagnostics/await-in-sync.lua
index 7647f2eb..323c1113 100644
--- a/test/diagnostics/await-in-sync.lua
+++ b/test/diagnostics/await-in-sync.lua
@@ -119,7 +119,7 @@ end
TEST [[
local function f(cb)
- <!cb!>()
+ cb()
end
local function af()
diff --git a/test/diagnostics/redundant-parameter.lua b/test/diagnostics/redundant-parameter.lua
index 520a6381..fabe3340 100644
--- a/test/diagnostics/redundant-parameter.lua
+++ b/test/diagnostics/redundant-parameter.lua
@@ -94,7 +94,7 @@ print(1, 2, 3, 4, 5)
TEST [[
local function f(callback)
- callback(<!1!>, <!2!>, <!3!>)
+ callback(1, 2, 3)
end
f(function () end)
]]