diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-16 20:57:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-16 20:57:50 +0800 |
commit | 47beee7d7085af35f6869cb349e27dd09b82e7a4 (patch) | |
tree | 8b339629804656edc55c375d36c8769a0b5ff986 /test/type_inference | |
parent | 8a9e8d9cfd12d43496c2bf16f70874af550d4e7e (diff) | |
download | lua-language-server-47beee7d7085af35f6869cb349e27dd09b82e7a4.zip |
infer `nil` as redundant return value
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 32a35fbd..c402cb8d 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2650,3 +2650,10 @@ x = call(x) print(<?x?>) ]] + +TEST 'nil' [[ +local function f() +end + +local <?x?> = f() +]] |