diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 5d3cd404..3c0ccf3a 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -504,10 +504,10 @@ local <?self?> = setmetatable({ ]] [[ local self: { - __index: table, - __name: string = "obj", id: integer = 1, remove: function, + __index: table, + __name: string = "obj", } ]] @@ -790,8 +790,6 @@ TEST [[ ]] [[ (global) _G: _G { - _G: _G, - _VERSION: string = "Lua 5.4", arg: string[], assert: function, collectgarbage: function, @@ -810,6 +808,8 @@ TEST [[ module: function, newproxy: function, next: function, + os: oslib, + package: packagelib, ...(+22) } ]] @@ -1851,6 +1851,23 @@ local x: { ]] TEST [[ +local <?x?> = { + _x = '', + _y = '', + x = '', + y = '', +} +]] +[[ +local x: { + x: string = "", + y: string = "", + _x: string = "", + _y: string = "", +} +]] + +TEST [[ ---@class A ---@field x string |