From 5c4fbc76835f9f31e04b4f99778dea5c63b84d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 23 May 2022 20:14:00 +0800 Subject: fix #1125 --- test/crossfile/hover.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/crossfile') 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. + ]] + }, + hover = [[ +```lua +(field) Apple.color: string +``` + +--- +The color of your awesome apple!]] +} -- cgit v1.2.3