igniter icon indicating copy to clipboard operation
igniter copied to clipboard

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

Open zachallaun opened this issue 2 years ago • 4 comments

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 avatar Oct 26 '24 21:10 zachallaun

Hello! I am one of the ash fellows. if this bug is still present and there is no one currently working on it I would be happy to give it a go.

Crobe182 avatar Oct 08 '26 16:10 Crobe182

Not sure! Best to reproduce in a failing test and tackle if that test fails 🙇

zachdaniel avatar Oct 08 '26 20:10 zachdaniel

I tried different tests but I couldn't reproduce the bug. The bug could have been fixed and just wasn't recorded or the bug is part of an edge case that I didn't try, I'm not certain. However, since I can't replicate the bug I am going to try tackling a different issue.

Crobe182 avatar Oct 15 '26 16:10 Crobe182

Thanks!

zachdaniel avatar Oct 15 '26 19:10 zachdaniel