Make Kotlin light classes pass "element instanceof StubBasedPsiElement" in LocalSearchScope scope

This commit is contained in:
Nikolay Krasko
2015-09-01 20:52:45 +03:00
parent 853c29be5a
commit 73a24435f7
5 changed files with 44 additions and 2 deletions
@@ -0,0 +1,21 @@
public class ImplementJavaInnerInterface {
interface Test {
void foo();
}
void test() {
Test test = new Test() {
@Override
public void foo() {
}
};
}
void usage(Test test) {
test.<caret>foo();
}
}
// REF: (in KotlinTest).foo()
// REF: <anonymous>.foo()
@@ -0,0 +1,3 @@
class KotlinTest : ImplementJavaInnerInterface.Test {
override fun foo() {}
}