Public `val` is only renamed locally
Start with
class Bug(val number: Int)
and in a separate fileobject Buggy {
def x = new Bug(32).number
}
Now renaming number
in Buggy
works, but renaming in Bug
fails, because Buggy
is not modified. Note that this might have the same underlying reason as #1002434.
Leave a comment
on 2015-04-24 10:47 *
By Simon Schäfer
Looks like scala-refactoring thinks that number is only a private field, at least that would explain why it shows the inline rename for the failing case, whereas for the working case the normal rename dialog is shown.