summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index d1148309..e8a718d4 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1525,3 +1525,32 @@ TEST {
}
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@enum <?A?>
+ local t =
+ {
+ x = 1,
+ y = 2,
+ z = 3,
+ }
+ ]]
+ },
+ hover = [[
+```lua
+(enum) A
+```
+
+---
+
+```lua
+{
+ x: integer = 1,
+ y: integer = 2,
+ z: integer = 3,
+}
+```]]
+}