3

I'm receiving the error message move refactoring is supported only for stable object members when I try to refactor / move xyz(), using IntelliJ 2018.2 Scala Plugin 2018.2.11

What is the reason for this limitation? As a work-around I do the refactoring by hand.

package package1

object TestcaseStableObjectMembers {

   def abc() = {

      def xyz() = {}

   }
}
Hartmut Pfarr
  • 5,534
  • 5
  • 36
  • 42
  • 1
    `xyz` could possibly refer to arguments of `abc` and other `val`s and `def`s declared inside `abc`. So checking soundness of such refactoring requires additional efforts. – simpadjo Oct 25 '18 at 14:48

0 Answers0