summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-12 17:57:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-12 17:57:12 +0800
commit6c92b9a7cc10971e4ec6402fe9c23b1839c58c80 (patch)
treeb4e593ebdececafb57a71962371fe9d9d89030c5 /test
parent5febd3a533762920ab4085fc8d3494fd64b3a6bb (diff)
downloadlua-language-server-6c92b9a7cc10971e4ec6402fe9c23b1839c58c80.zip
stash
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 f4a4449d..ed29d3d1 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -4175,3 +4175,17 @@ if xxx == <?t?> then
print(t)
end
]]
+
+TEST 'V' [[
+---@class V
+X = 1
+
+print(<?X?>)
+]]
+
+TEST 'V' [[
+---@class V
+X.Y = 1
+
+print(X.<?Y?>)
+]]