summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index c8c333f0..521f5a49 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -713,3 +713,21 @@ hover = {
name = 'G.A',
description = 'BBB'
}}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+---I am the class description.
+---@class Food
+---@field firstField number
+---@field secondField number
+local food = {}
+
+food.<?firstField?> = 0
+food.secondField = 2
+]]
+},
+hover = {
+ label = 'field Food.firstField: integer = 0',
+ name = 'food.firstField',
+}}