-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach guessOverload to respect block arity
Sometimes it's useful to be able to use the arity of the block to guess an overload. This isn't perfect for all the reasons that overload checking isn't perfect, but there are some places where this is useful, especially in abstractions that check the proc's arity when deciding how to call the block. This is also a pre-requisite for doing something like #7741, which is a partial fix for #3914 / #4149, where we infer the types of `Kernel#lambda` blocks by codegenerating overloaded signatures.
- Loading branch information
Showing
2 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters