-
-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I have the below code and the language server's odd complaint about a ---@cast. You can see I added the same cast a few lines later and it doesn't complain about that one (even if I remove the first one).
---@cast removedWeaponDetails - nil
if flamethrowerGiven == nil then
Logging.LogPrint(errorMessageStart .. "target player can't be given a flamethrower for some odd reason: " .. data.target)
return
end
---@cast removedWeaponDetails - nil```
On-hover over the type when its first returned by the function,

Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working