summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-14 20:54:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-14 20:54:24 +0800
commit7bf48ded2644c706bd91e20420fe94bba05d2b51 (patch)
tree4dd4f329b819ec35e604dfab35cd11ce4f43576c /test/type_inference
parentbe86f7c2215e0019af84b9d444485e99c5d3e801 (diff)
downloadlua-language-server-7bf48ded2644c706bd91e20420fe94bba05d2b51.zip
update runner
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index a194ce2d..efcc5fea 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -2482,3 +2482,12 @@ t = t or {}
print(<?t?>)
]]
+
+TEST 'unknown|nil' [[
+local x
+
+if x == nil then
+end
+
+print(<?x?>)
+]]