summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 15:05:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-18 17:10:01 +0800
commit681a815fb2492a5cdc443ef150f5c5cdccedcf2f (patch)
treef2c32ebbd962ba43dc0632743b3f15f1850d272c /test/type_inference
parent9fbcebbad7861dc842937d88b86d3f6e7039f9d7 (diff)
downloadlua-language-server-681a815fb2492a5cdc443ef150f5c5cdccedcf2f.zip
update type-infer
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index ac300fcb..a3764328 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -925,3 +925,22 @@ local emit = {}
emit:on("died", function (<?i?>)
end)
]]
+
+TEST '👍' [[
+---@class 👍
+local <?x?>
+]]
+
+TEST 'boolean' [[
+---@type boolean
+local x
+
+<?x?> = 1
+]]
+
+TEST 'Class' [[
+---@class Class
+local x
+
+<?x?> = 1
+]]