diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-11 18:05:49 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-11 18:05:49 +0800 |
commit | e665f6f914eec9e3beca165f1ad7ff432573c740 (patch) | |
tree | 6c9c5fed6a5c68a8afe6e984617f43c093821883 /test/type_inference/init.lua | |
parent | 341949e632439b76485f4707155df93f9dd4b258 (diff) | |
download | lua-language-server-e665f6f914eec9e3beca165f1ad7ff432573c740.zip |
update
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 8 |
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 |