41 lines
720 B
Plaintext
Vendored
41 lines
720 B
Plaintext
Vendored
// FILE: bar/Foo.before.java
|
|
// "Import static method 'foo.Bar.getTestValue'" "true"
|
|
// ERROR: Unresolved reference: getTestValue
|
|
// ACTION: Create method 'foobar'
|
|
// WITH_RUNTIME
|
|
package bar;
|
|
|
|
public class Foo {
|
|
public void main()
|
|
{
|
|
getTestValue<caret>();
|
|
}
|
|
}
|
|
|
|
|
|
// FILE: foo/Bar.dependency.kt
|
|
package foo
|
|
|
|
object Bar {
|
|
@JvmStatic
|
|
val testValue get() = "foobar"
|
|
}
|
|
|
|
// FILE: bar/Foo.after.java
|
|
// "Import static method 'foo.Bar.getTestValue'" "true"
|
|
// ERROR: Unresolved reference: getTestValue
|
|
// ACTION: Create method 'foobar'
|
|
// WITH_RUNTIME
|
|
package bar;
|
|
|
|
import static foo.Bar.getTestValue;
|
|
|
|
public class Foo {
|
|
public void main()
|
|
{
|
|
getTestValue<caret>();
|
|
}
|
|
}
|
|
|
|
|