Editor Hangs Up After Compiling a Modified Function

Good day, I was just wondering if my workflow should avoid this approach.

You see, I was creating a custom function in a function library. Then of course, I used it in one of my Blueprints. Later on, I thought to add a new pin for my Function’s output for some necessary reasons. After hitting compile button, the editor hanged up.

I tried it again, this time, by erasing my custom function first from the BP then compile my modified custom function and it didn’t hang.

So now, is this a bug or is this one of the BP do’s and dont’s?