Files
kotlin-fork/idea/testData/quickfix/autoImports/importKotlinCompanionStaticPropertyOverloadedGetterFromJava.test
T
2019-05-13 11:21:12 +03:00

43 lines
748 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
class Bar {
companion object {
@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>();
}
}