Fix tests for looking implementations from Java - no search for Kotlin declaration from usages

Probably because of this commit: https://github.com/JetBrains/intellij-community/commit/7d95ff4d86e584d66d558559a1a4678920281ca1
This commit is contained in:
Nikolay Krasko
2016-09-20 16:46:44 +03:00
parent 621c6691d0
commit 37fb8d6306
4 changed files with 45 additions and 2 deletions
@@ -0,0 +1,28 @@
public class ImplementJavaInnerInterfaceFromUsage {
interface Test {
void foo();
}
void test() {
Test test = new Test() {
@Override
public void foo() {
}
};
}
public static class OtherJava implements Test {
@Override
public void foo() {
}
}
void usage(Test test) {
test.<caret>foo();
}
}
// REF: (in ImplementJavaInnerInterfaceFromUsage.OtherJava).foo()
// REF: <anonymous>.foo()
@@ -0,0 +1,3 @@
class KotlinTest : ImplementJavaInnerInterfaceFromUsage.Test {
override fun foo() {}
}