summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-15 17:00:56 +0800
committersumneko <sumneko@hotmail.com>2019-04-15 17:00:56 +0800
commit0fe4e33123b03003689b96567d6aa13d5805d4d6 (patch)
tree2ac2a02ca9beda611e4878c1e45a641e4364c602 /server/test
parent12373b0f4e0b44ed98c9eaa8ce0c6b8c3f3697b5 (diff)
downloadlua-language-server-0fe4e33123b03003689b96567d6aa13d5805d4d6.zip
以无参数的方式调用对象函数不检查多余参数
Diffstat (limited to 'server/test')
-rw-r--r--server/test/diagnostics/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index be54188f..e23e2b1a 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -263,3 +263,11 @@ return {
<!x!> = 3,
}
]]
+
+TEST [[
+local m = {}
+function m.open()
+end
+
+m:open()
+]]