From 81507913f43d51bd809575f166ed264e29bb07c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 13 Apr 2021 10:40:35 +0800 Subject: fix #502 --- test/crossfile/hover.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/crossfile') 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. = 0 +food.secondField = 2 +]] +}, +hover = { + label = 'field Food.firstField: integer = 0', + name = 'food.firstField', +}} -- cgit v1.2.3