summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 15:05:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-16 15:05:49 +0800
commit4c636f0c792fb7abcdf4d38430be23d8bfc40491 (patch)
treef9105a3e2b1cc3035f6c8ddab3682cd91d70bacf /test
parentaa100883142d9512fc9e1de5832c72a3cda0bdfe (diff)
downloadlua-language-server-4c636f0c792fb7abcdf4d38430be23d8bfc40491.zip
update type-infer
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 135f6749..a3764328 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -930,3 +930,17 @@ TEST '👍' [[
---@class 👍
local <?x?>
]]
+
+TEST 'boolean' [[
+---@type boolean
+local x
+
+<?x?> = 1
+]]
+
+TEST 'Class' [[
+---@class Class
+local x
+
+<?x?> = 1
+]]