Skip to content

Remove error union from Class.addMethod return type#21

Merged
mitchellh merged 1 commit intomitchellh:mainfrom
by-nir:add-method-return
Jul 3, 2025
Merged

Remove error union from Class.addMethod return type#21
mitchellh merged 1 commit intomitchellh:mainfrom
by-nir:add-method-return

Conversation

@Nirlah
Copy link
Contributor

@Nirlah Nirlah commented Jul 3, 2025

The addMethod() function does not return any error.
This is a breaking change to the API, but I believe it’s worth it for the sake of both correctness and consistency with addIvar().

This function does not return an error; it also makes it consistent with `addIvar` function.
@mitchellh mitchellh merged commit 3bdbabb into mitchellh:main Jul 3, 2025
1 check passed
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.

2 participants