diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 18:24:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 18:24:34 +0800 |
commit | 90b95a06eb43b469f53c147509a4d67e1c567fb5 (patch) | |
tree | b20d2a57c13e41c6e7afd09a9043ede1ee787411 /test | |
parent | f5fcab05b5a30373d1b35689d456090c8299c4c2 (diff) | |
download | lua-language-server-90b95a06eb43b469f53c147509a4d67e1c567fb5.zip |
local uses `nil` at least
fix #2155
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index aba6b0b4..98a07ca3 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -44,6 +44,10 @@ function TEST(wanted) end end +TEST 'nil' [[ +local <?t?> = nil +]] + TEST 'string' [[ local <?var?> = '111' ]] |