summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 55ce9845..912807ac 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1324,3 +1324,16 @@ local <?t?>
[[
local t: string|'enum1'|'enum2'
]]
+
+TEST [[
+---@class c
+t = {}
+
+---@overload fun()
+function <?t?>.f() end
+]]
+[[
+global t: c {
+ f: function,
+}
+]]