-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for overriding functions #2158
Comments
Worth noting that the type inference here is half-functional, as described here: #1801 |
Suggestion: Add this by default to every configuration file
Am I kidding? idk.
The more of those I have, the more wrong it feels. All of my work arounds feel worse. I have 15 tabs open to pages discussing the issue. I've been reading them and browsing the LuaLS repos for hours now. Maybe I'm getting trauma flashbacks to luau's evolving type system with this issue. Getting the best of a flexible language like lua along with some of the comforts of a strongly typed language is hard. There were a lot of people looking at that and there was a lot of iteration. It's understandably very hard to get right. There are languages and environments I would insist on having any callbacks run through a subscribe function. I don't know that an |
The language server currently doesn't automatically infer types when overriding functions.
Example of the desired behavior:
The text was updated successfully, but these errors were encountered: