summaryrefslogtreecommitdiff
path: root/server/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-29 16:44:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-29 16:44:43 +0800
commit734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1 (patch)
treea25317a492f36a79323a7c15f775b38c09f92589 /server/test/diagnostics/init.lua
parent41b4fe57bf46f5e67a8f41bde4ded038955e178d (diff)
downloadlua-language-server-734d9c6abeffaf8f70ef043a7a960fdd6cf16ca1.zip
new field call 的诊断
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r--server/test/diagnostics/init.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 555bc0a8..c854e5a2 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -185,6 +185,34 @@ print()
]]
TEST [[
+return {
+ print
+ <!'string'!>
+}
+]]
+
+TEST [[
+return {
+ print
+ <!{
+ x = 1,
+ }!>
+}
+]]
+
+TEST [[
+print()
+'string'
+]]
+
+TEST [[
+print
+{
+ x = 1,
+}
+]]
+
+TEST [[
local function x(a, b)
return a, b
end