summaryrefslogtreecommitdiff
path: root/server/test/diagnostics
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-03 20:52:00 +0800
committersumneko <sumneko@hotmail.com>2019-04-03 20:52:00 +0800
commit619303cbf0fed55ed6c8baec6e3b9d873f68207b (patch)
tree5ca77a432f40c80c704ae1c8edce5a675d8a8e54 /server/test/diagnostics
parent8989f2503db172023f14ab1715709267fe87e371 (diff)
downloadlua-language-server-619303cbf0fed55ed6c8baec6e3b9d873f68207b.zip
修正某些未定义全局变量被诊断为重载_ENV后未定义的bug
Diffstat (limited to 'server/test/diagnostics')
-rw-r--r--server/test/diagnostics/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua
index 4aac9719..00ec11bf 100644
--- a/server/test/diagnostics/init.lua
+++ b/server/test/diagnostics/init.lua
@@ -250,3 +250,7 @@ f(1, 2, 3)
TEST [[
<!warn!>(1)
]]
+
+TEST [[
+X = table[<!x!>]
+]]