summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-14 23:26:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-14 23:26:59 +0800
commitbf334a76c7ebff9da14292061a8f4a904ff38465 (patch)
treedcb7f409561a68f4047c5e37c5fc680774ce6807 /test
parentbfe3e71009a4bb575a9978a4b5749b10122a2bc6 (diff)
downloadlua-language-server-bf334a76c7ebff9da14292061a8f4a904ff38465.zip
don't use `nil` as value
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 4787dd56..7b5fb332 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -1466,3 +1466,8 @@ G = {}
<?G?>:A()
]]
+
+TEST 'A' [[
+---@type A
+local <?x?> = nil
+]]