Skip to content

Conversation

na4ma4
Copy link
Contributor

@na4ma4 na4ma4 commented Jun 11, 2024

getFunction() ignores the receiver, selecting the first matching function name regardless of scope.

Fixes #508

@perrito666
Copy link
Contributor

@na4ma4 sorry for the extreme lag responding to this, I had to build some time to work on floss in my calendar.

Would it be possible to add a test like your example from #508 into this PR? this way we ensure we do not regress and/or hit other corners.

@perrito666 perrito666 self-requested a review November 24, 2024 14:30
Copy link
Contributor

@perrito666 perrito666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ill submit a test for this

perrito666 added a commit to perrito666/mage that referenced this pull request Nov 24, 2024
It fails against master before merging the patch on magefile#509 (review)
@perrito666 perrito666 merged commit 0800736 into magefile:master Nov 24, 2024
natefinch pushed a commit that referenced this pull request Nov 24, 2024
* This adds a test to bug 508

It fails against master before merging the patch on #509 (review)
@na4ma4
Copy link
Contributor Author

na4ma4 commented Nov 25, 2024

Thanks, it was on my to-do list but hadn't had time yet :)

@perrito666
Copy link
Contributor

My pleasure @na4ma4 , I had some time on my hands and I felt it was the least I could do after taking months to review your fix :D

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.

Bug: using Default with imports selects first matching func by name
2 participants