summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index a3741764..7521ddf4 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2430,3 +2430,20 @@ local t: {
['y']: integer = 2,
}
]]
+
+TEST [[
+local enum = { a = 1, b = 2 }
+
+local <?t?> = {
+ [enum.a] = true,
+ [enum.b] = 2,
+ [3] = {}
+}
+]]
+[[
+local t: {
+ [1]: boolean = true,
+ [2]: integer = 2,
+ [3]: table,
+}
+]]