summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-05 15:21:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-05 15:21:17 +0800
commitc0ee6e9d999918bc7599625feddbff6ba005c270 (patch)
treea68aeb030f47495c61a56e85683c2a4f89157f0d /test
parent60189b2603798bba46e0c0aefdbad575efebfcee (diff)
downloadlua-language-server-c0ee6e9d999918bc7599625feddbff6ba005c270.zip
fix #1279
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 7fa6ec7c..a934a85d 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -3357,3 +3357,10 @@ local t
<?t?> = {}
]]
+
+TEST 'integer' [[
+---@type integer[]|A
+local t
+
+local <?x?> = t[1]
+]]