diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-11 13:06:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-11 13:06:00 +0800 |
commit | 1a81302b66a5bef55342ef4d8b3fa0cb1de92e4e (patch) | |
tree | 8af6cf679f380b5d72da8e8e91383c98bb542789 /test-beta/hover/init.lua | |
parent | 9be2ea0586a775bea6d7c0b13472f0916d3016e6 (diff) | |
download | lua-language-server-1a81302b66a5bef55342ef4d8b3fa0cb1de92e4e.zip |
修正值为nil时的显示错误
Diffstat (limited to 'test-beta/hover/init.lua')
-rw-r--r-- | test-beta/hover/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua index ecab266e..3919ca80 100644 --- a/test-beta/hover/init.lua +++ b/test-beta/hover/init.lua @@ -624,6 +624,16 @@ function f() 2. nil ]] +TEST [[ +local function f() + return nil +end +local <?x?> = f() +]] +[[ +local x: nil +]] + --TEST[[ -----@class Class --local <?x?> = class() |