summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 23:46:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 23:46:53 +0800
commit3cadbfc7419542a8b56f0996bfbfbda146a30ea5 (patch)
tree216f4c4afff1240c84b395901bf7a7b0a9f78239 /test/diagnostics
parent0652fa586d62408e28d8f7d253aa96381d357bc8 (diff)
downloadlua-language-server-3cadbfc7419542a8b56f0996bfbfbda146a30ea5.zip
fix infer of `unknown and unknown`
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 72b2db6c..5f1d01c8 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1494,3 +1494,10 @@ local x
S = <!x!>()
]]
+
+TEST [[
+local x, y
+local z = x and y
+
+print(z.y)
+]]