summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover/init.lua')
-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,
+}
+]]