No Quick Fix import for type (default argument is the likely cause)
package bar {
import foo.Foo
object Bar {
Foo.foo(Buz.b) // <-- Quick Fix import on `Buz` won't work
}
}
package foo {
object Foo {
def foo(any: String, theIssueIsThisDefaultArgument: Any = "") {}
}
}
package buz {
object Buz {
val b = ""
}
}
Given the above code, Quick Fix import on `Buz` won't work. The likely reason seem to be the default argument in Foo.foo. Indeed, if you remove the default argument, then quick fix on `Buz` works as expected!
Leave a comment
file:axx9bOT84r4ByHacwqjQXA
Eclipse Scala project that demonstrates issue
Eclipse Scala project that demonstrates issue
on 2014-04-26 13:16 *
By Simon Schäfer
Eclipse version changed from Helios to Kepler - Eclipse 4.3
Version changed from 2.1.0-nightly-29 to 3.0.2-210
Description changed from
package bar {
... to
package bar {
...
Status changed from New to Accepted
For me this doesn't even work when the default argument is missing.