Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Compilation error after "Organize Imports" if importing contents of an object within a method. #146

Open
mdelem opened this issue Mar 13, 2016 · 1 comment

Comments

@mdelem
Copy link

mdelem commented Mar 13, 2016

Using Scala Refactoring 0.9.1.2_11-201603041823 (Scala IDE 4.4.0-RC1):

object AnObject {
  val a = 3
}

object Test {
  def test() : Int = {
    import AnObject._

    a
  }

}

is refactored after "Organize Imports" to:

object AnObject {
  val a = 3
}

object Test {
  def test() : Int = {

    a
  }

}

Which makes the 'a' statement invalid.

@wpopielarski
Copy link
Member

I think there is a ticket open against it. But if you are impatient and
open for exciting adventures and ready to help doing scala refactoring
better so you could get this guy to play with a little
#144

Thanks in advance
:)

2016-03-13 22:33 GMT+01:00 Martin Delemotte [email protected]:

Using Scala Refactoring 0.9.1.2_11-201603041823 (Scala IDE 4.4.0-RC1):

object AnObject {
val a = 3
}
object Test {
def test() : Int = {
import AnObject._

a

}

}

is refactored after "Organize Imports" to:

object AnObject {
val a = 3
}
object Test {
def test() : Int = {

a

}

}

Which makes the 'a' statement invalid.


Reply to this email directly or view it on GitHub
#146.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants