Files
kotlin-fork/idea/testData/quickfix/autoImports/importKotlinStaticPropertyDefaultGetterFromJava.test
T

40 lines
703 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 = "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>();
}
}