summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-14 21:10:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-14 21:10:55 +0800
commit92a5388138c2d916eaa0160df1cebfbec70a6b16 (patch)
tree64592aef3c7deac08649e511d6fed1afcfb69c59 /test/diagnostics/init.lua
parent834d5e70092d38c884b23fe2bc176ed06f362c69 (diff)
downloadlua-language-server-92a5388138c2d916eaa0160df1cebfbec70a6b16.zip
diagnostic supporting `tableexp`
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index d9069b9b..b90b4b26 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -1158,3 +1158,10 @@ TEST [[
---@type { x: number, y: number}
---| "'resume'"
]]
+
+TEST [[
+return {
+ 1, <!2!>, 3,
+ [<!2!>] = 4,
+}
+]]