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

44 lines
769 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 {
companion object {
val testValue = "foobar"
@JvmStatic get() {
}
}
}
// 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>();
}
}