summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-09 20:20:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-09 20:20:30 +0800
commite79f87e500b745230ffda5ed993ddc5e2c873b2d (patch)
tree00313cff48f45b05917955bb28b7240c434fbf13 /test
parent6f889136264e39a9c47e8cce569274414c9b4a50 (diff)
downloadlua-language-server-e79f87e500b745230ffda5ed993ddc5e2c873b2d.zip
fix
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 7cfc7fe9..c8619d27 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4166,3 +4166,12 @@ X = Y
print(<?X?>)
]]
+
+TEST 'number' [[
+---@type number
+local t
+
+if xxx == <?t?> then
+ print(t)
+end
+]]