Use other property name in Java with Kotlin static import tests
This commit is contained in:
+8
-8
@@ -1,6 +1,6 @@
|
||||
// FILE: bar/Foo.before.java
|
||||
// "Import static method..." "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// "Import static method 'foo.Bar.getTestValue'" "true"
|
||||
// ERROR: Unresolved reference: getTestValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
package bar;
|
||||
@@ -8,7 +8,7 @@ package bar;
|
||||
public class Foo {
|
||||
public void main()
|
||||
{
|
||||
getValue<caret>();
|
||||
getTestValue<caret>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,24 +17,24 @@ public class Foo {
|
||||
package foo
|
||||
|
||||
object Bar {
|
||||
val value = "foobar"
|
||||
val testValue = "foobar"
|
||||
@JvmStatic get() {
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: bar/Foo.after.java
|
||||
// "Import static method..." "true"
|
||||
// ERROR: Unresolved reference: getValue
|
||||
// "Import static method 'foo.Bar.getTestValue'" "true"
|
||||
// ERROR: Unresolved reference: getTestValue
|
||||
// ACTION: Create method 'foobar'
|
||||
// WITH_RUNTIME
|
||||
package bar;
|
||||
|
||||
import static foo.Bar.getValue;
|
||||
import static foo.Bar.getTestValue;
|
||||
|
||||
public class Foo {
|
||||
public void main()
|
||||
{
|
||||
getValue<caret>();
|
||||
getTestValue<caret>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user