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
unknown-cast-variable in last function of a file #2326
I have a file with two functions that both cast a local variable to a different type. This works perfectly for the first function but fails for the second (or the last if I add more functions).
Actual Behaviour
Error Unknown type conversion variable item (unknown-cast-variable) for the ---@cast item B inside fu().
Activity
PinewoodPip commentedon Sep 13, 2023
See this for a workaround and more details: #2207
TL;DR: add a newline at the end of the file.
arnoson commentedon Sep 13, 2023
Thanks @PinewoodPip for the quick answer! I didn't search in the discussions 🙈
Arxareon commentedon Jul 23, 2026
Is this eof error/quirk planned to be fixed? This is still the case.