Return Kotlin fields and methods through KotlinShortNameCache

#KT-12205 Fixed
This commit is contained in:
Simon Ogorodnik
2016-08-30 19:49:10 +03:00
committed by Dmitry Jemerov
parent b06bdcef75
commit 18feb8f622
28 changed files with 1156 additions and 57 deletions
@@ -0,0 +1,40 @@
// FILE: bar/Foo.before.java
// "Static import method 'foo.Bar.foobar'" "true"
// ERROR: Unresolved reference: foobar
// ACTION: Create method 'foobar'
// WITH_RUNTIME
package bar;
public class Foo {
public void main()
{
foobar<caret>();
}
}
// FILE: foo/Bar.dependency.kt
package foo
object Bar {
@JvmStatic fun foobar() {
}
}
// FILE: bar/Foo.after.java
// "Static import method 'foo.Bar.foobar'" "true"
// ERROR: Unresolved reference: foobar
// ACTION: Create method 'foobar'
// WITH_RUNTIME
package bar;
import static foo.Bar.foobar;
public class Foo {
public void main()
{
foobar<caret>();
}
}