semoro
09/05/2016, 11:21 AMpackage foo
object Bar {
companion object {
@JvmField var foobar = "foobar"
}
}
import static foo.Bar.Companion.foobar;
public class Foo {
public void main()
{
foobar<caret> = "barfoo";
}
}
Why we should import foo.Bar.Companion.foobar, not a foo.Bar.foobar?
Cause field in this case located in Companion?