Two files:
Now, moving C to the package p1.p2 results in the following contents in:
package p1
object O {
def ? : String = ???
}
package p1
class C {
import O._
def f = ?
}
Now, moving C to the package p1.p2 results in the following contents in:
package p1.p2
import O.{? => ?}
class C {
import O._
def f = ?
}
Leave a comment
Hmm, this I also get errors without special characters (e.g. by renaming
results in breakage. To cut a long story short: The problems we are seeing here seem to be more related to imports from unqualified objects than to special characters.
def ? : String = ???
to def a: String = ???
). In this case moving C
to package p1.p2
results inpackage p1.p2
import O.a
class C {
import O._
def f = a
}
Also, this bug does not occur if class O
is defined without the inner import O._
aspackage p1
class C {
def f = O.?
}
or evenpackage p1
import p1.O._
class C {
def f = ?
}
. On the other handpackage p1
import O._
class C {
def f = ?
}
results in breakage. To cut a long story short: The problems we are seeing here seem to be more related to imports from unqualified objects than to special characters.
This should be fixed by https://github.com/scala-ide/scala-refactoring/pull/89.
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|