Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jun 26, 2025

Fixes #5281

The previous code already collected all command overloads in the Discover data structure, but it returned one arbitrarily when queried. This PR makes it return the one with the longer argument list, which supports @unroll-style signature evolution of adding parameters with default values to the right side of a parameter list.

Added a unit test that fails on main, passes on this PR

@lihaoyi lihaoyi merged commit 99e684e into com-lihaoyi:main Jun 26, 2025
74 of 75 checks passed
@lefou lefou modified the milestone: 1.0.0-RC3 Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better support task/command def overloading

2 participants