summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-11 18:05:49 +0800
committersumneko <sumneko@hotmail.com>2022-03-11 18:05:49 +0800
commite665f6f914eec9e3beca165f1ad7ff432573c740 (patch)
tree6c9c5fed6a5c68a8afe6e984617f43c093821883 /test/type_inference/init.lua
parent341949e632439b76485f4707155df93f9dd4b258 (diff)
downloadlua-language-server-e665f6f914eec9e3beca165f1ad7ff432573c740.zip
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r--test/type_inference/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 9edc49c3..f62ca013 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -289,6 +289,14 @@ end
<?y?> = x()
]]
+TEST 'unknown' [[
+local function x()
+ return nil
+ return f()
+end
+_, <?y?> = x()
+]]
+
TEST 'integer' [[
local function x()
return 1