summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-27 19:49:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-27 19:49:55 +0800
commit0805d50df822422bcee2b5bf6bfe9067f1a9063a (patch)
tree7efc4cf4dbba6f0d19263d05c32983ac6a9c1262 /test
parentfcdce9a9660be08ddc5b94c60ce84d5970711a7f (diff)
downloadlua-language-server-0805d50df822422bcee2b5bf6bfe9067f1a9063a.zip
dont infers nil
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index ba3ca304..13efbc59 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -189,7 +189,7 @@ end
<?y?> = x()
]]
-TEST 'integer|nil' [[
+TEST 'integer' [[
local function x()
return 1
return nil