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
Function overloading by declaring multiple functions with same name appears to be completely broken #3396
From my experience, this only happens if you write the function call inside a @meta file.
If you test it in a separate, non @meta file, it works correctly. 🤔
meta.lua
---@meta---@paramstringParamstringfunctionDoSomething(stringParam) end---@paramintParam1integer---@paramintParam2integerfunctionDoSomething(intParam1, intParam2) end
main.lua
DoSomething("test") --< no warning, and points to `function DoSomething(stringParam: string)`
Activity
tomlau10 commentedon Apr 4, 2026
From my experience, this only happens if you write the function call inside a
@metafile.If you test it in a separate, non
@metafile, it works correctly. 🤔