summaryrefslogtreecommitdiff
path: root/test/type_inference/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-19 18:05:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-19 18:05:24 +0800
commit8760bf99594594e009bc6aa2bb1816eb02fc7006 (patch)
treed4e6eca37523172c8272375681b0082bba623a0a /test/type_inference/init.lua
parent6e5a6359717eb286b11431759ad3295ad4ae7978 (diff)
downloadlua-language-server-8760bf99594594e009bc6aa2bb1816eb02fc7006.zip
fix #805
Diffstat (limited to 'test/type_inference/init.lua')
-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 6d5a57dd..1a07b807 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -987,3 +987,8 @@ local mt
---@type number
function mt:f(<?x?>) end
]]
+
+TEST 'Test' [[
+---@class Test
+_G.<?Test?> = {}
+]]