Skip to content
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

Igniter.Refactors.Rename.rename_function/3 should update the @spec associated with the definition #115

Open
zachallaun opened this issue Oct 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zachallaun
Copy link
Collaborator

Something I noticed while testing a rename_function call. It will upgrade the function name at the definition site, but not the @spec preceding it, so renaming foo/2 to bar/2 will get you something like:

@spec foo(term(), term()) :: term()
def bar(x, y) do
  ...
end
@zachallaun zachallaun added the bug Something isn't working label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant