This repository was archived by the owner on Sep 3, 2020. It is now read-only.
This repository was 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
Description
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.
Metadata
Metadata
Assignees
Labels
No labels