-
Notifications
You must be signed in to change notification settings - Fork 16
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
Supporting Overloads #56
Comments
I didn't know Sorbet supports overloads now - that's great! Parlour doesn't support this currently. I'm happy to look at implementing overloads, but we do indeed need to decide on a pattern for implementing them. I'm think the call structure you've proposed is probably the best way of doing it. It might be worth restructuring some of how Parlour works to make the implementation more elegant - perhaps breaking a |
May I ask if you're currently using overloads in a codebase, @bmalinconico? It seems that they aren't generally available for use in Sorbet yet, and I can't get them to work on sorbet.run. |
Ah looks like overloads are only allowed in the stdlib and that test file
Hopefully that means it is coming soon |
This is possible outside of stdlib since Sorbet 0.5.11087 (ref sorbet/sorbet#7412). |
Sorbet now supported overloaded method signatures.
Poking around parlour I do not see a way to do this yet. If we are not yet able to generate multiple sigs per method, I would like to have a chat about options. If they have not been implemented by the time I need them, I'll add them myself if we can agree on an appropriate pattern.
My first instinct is:
The text was updated successfully, but these errors were encountered: