summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 09eceb43..0bf8165b 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1137,3 +1137,24 @@ TEST {
(async) (method) C:f(a: any)
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@class Apple
+ ---The color of your awesome apple!
+ ---@field color string
+ local Apple = {}
+
+ Apple.<?color?>
+ ]]
+ },
+ hover = [[
+```lua
+(field) Apple.color: string
+```
+
+---
+The color of your awesome apple!]]
+}