diff options
author | sumneko <sumneko@hotmail.com> | 2021-10-01 14:32:01 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2021-10-01 14:32:01 +0800 |
commit | 2183bf6e33a26216ecac691266462013a6359f68 (patch) | |
tree | 4487d3b044cf5d502d56c15d018b93b86b866ed8 /test/type_inference/init.lua | |
parent | 26595d420cb58772ddbe068de204e6df942c2405 (diff) | |
download | lua-language-server-2183bf6e33a26216ecac691266462013a6359f68.zip |
#693 no longer infer `nil`
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 d3ff258c..ac300fcb 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -233,6 +233,14 @@ end <?y?> = x() ]] +TEST 'any' [[ +local function x() + return nil + return f() +end +<?y?> = x() +]] + TEST 'integer' [[ local function x() return 1 |