summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
authorlizho <lizho@msn.com>2024-01-30 09:36:41 +0800
committerGitHub <noreply@github.com>2024-01-30 09:36:41 +0800
commit7f95e6f71862967bcdc9ca1d78a1947dd177ca3e (patch)
treebf5a0a138c70b084d1dbacb6a8bcad3da19bbc64 /test/hover
parent9185dfad1286942b4914657e4c0e9ad28cb2aaa8 (diff)
downloadlua-language-server-7f95e6f71862967bcdc9ca1d78a1947dd177ca3e.zip
support tuple type
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 63220a59..0cfce3a4 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1228,6 +1228,17 @@ local <?x?>
local x: table<ClassA, ClassB>
]]
+TEST [[
+---@type [ClassA, ClassB]
+local <?x?>
+]]
+[[
+local x: [ClassA, ClassB] {
+ [1]: ClassA,
+ [2]: ClassB,
+}
+]]
+
--TEST [[
-----@class ClassA
-----@class ClassB