You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
expected table return value is not detecting missing fields #3383
-- meta file describing lua to C++ plugin api---@classPosition---@fieldxinteger---@fieldyinteger---@classCxxAbi---@fieldget_posfun(): Positionabi= {}
-- example lua pluginfunctionabi.get_pos()
iffalsethenreturn""endreturn {
missing="fields"
}
end
I am trying to provide type hints for the callbacks that my users can implement. It checks the returned type but it does not warn if fields are missing in the returned type.
changed the title [-]expected table return value is not type checked[/-][+]expected table return value is not detecting missing fields[/+]on Mar 18, 2026
Activity
[-]expected table return value is not type checked[/-][+]expected table return value is not detecting missing fields[/+]tomlau10 commentedon Mar 19, 2026
enable
type.checkTableShapein.luarc.jsonof your projectfor more details please see: #2802 (comment)
ChillerDragon commentedon Mar 19, 2026
amazing thanks
Recommend table shape check