diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/hover.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 1c46214c..97e6218d 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -969,3 +969,20 @@ p: T | b -- comment 3 -- comment 4 ```]]} + +TEST {{ path = 'a.lua', content = '', }, { + path = 'b.lua', + content = [[ +---@param x number # aaa +local f + +function f(<?x?>) end +]] +}, +hover = [[ +```lua +local x: number +``` + +--- + aaa]]} |