-
-
Notifications
You must be signed in to change notification settings - Fork 383
Closed
Labels
feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)
Description
I'm trying to use class inheritance as described in the EmmyLua doc but can't get it to work.
Here the Button:RegisterEvent()
method does not get inherited from Frame
.
---@class Frame
local Frame = {}
---@param event string
function Frame:RegisterEvent(event) end
---@class Button : Frame
local Button = {}
---@return boolean enabled
function Button:IsEnabled() end
---@type Button
local someBtn = {}
Similar examples:
Stanzilla and Sledmine
Metadata
Metadata
Assignees
Labels
feat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)Related to Lua Language Server Annotations (LuaCats)