summaryrefslogtreecommitdiff
path: root/test/hover
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-06 15:15:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-06 15:15:07 +0800
commiteeb24f394050578dd575e6c9035230c0d51b2672 (patch)
treea7a3ce473fb7fdf0a05ca89e34b8dbe4fd6cb40c /test/hover
parent48c53a36c6bad6662aabc8af98fb58d54ad9a498 (diff)
downloadlua-language-server-eeb24f394050578dd575e6c9035230c0d51b2672.zip
fix #1288
Diffstat (limited to 'test/hover')
-rw-r--r--test/hover/init.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index acb779bf..476644fc 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -2074,3 +2074,20 @@ local <?f?>
[[
local f: fun():(x: number, y: boolean)
]]
+
+TEST [[
+---@class MyClass
+local MyClass = {
+ a = 1
+}
+
+function MyClass:Test()
+ <?self?>
+end
+]]
+[[
+(self) self: MyClass {
+ Test: function,
+ a: integer = 1,
+}
+]]