summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r--test/diagnostics/common.lua20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 1f8a782d..759039a6 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -439,12 +439,14 @@ local <!x!> = {}
TEST [[
local function f(<!self!>)
+ return 'something'
end
f()
]]
TEST [[
local function f(<!...!>)
+ return 'something'
end
f()
]]
@@ -1047,20 +1049,6 @@ end
]]
TEST [[
----@param a number
-return function (<!a!>)
-end
-]]
-
-TEST [[
----@meta
-
----@param a number
-return function (a)
-end
-]]
-
-TEST [[
local m = {}
function <!m:fff!>()
@@ -1703,3 +1691,7 @@ function t:init() end
<!t.init()!>
]]
+
+TEST [[
+return function f(x, y, z) end
+]]