Minor fix in partial body resolve
This commit is contained in:
@@ -552,6 +552,8 @@ class PartialBodyResolveFilter(
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is JetClassInitializer -> false
|
||||||
|
|
||||||
else -> true
|
else -> true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
Resolve target: fun foo(): kotlin.Int
|
||||||
|
----------------------------------------------
|
||||||
|
class C {
|
||||||
|
init {
|
||||||
|
<caret>foo()
|
||||||
|
/* STATEMENT DELETED: bar() */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun foo() = 1
|
||||||
|
fun bar() = 2
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
class C {
|
||||||
|
init {
|
||||||
|
<caret>foo()
|
||||||
|
bar()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun foo() = 1
|
||||||
|
fun bar() = 2
|
||||||
@@ -65,6 +65,12 @@ public class PartialBodyResolveTestGenerated extends AbstractPartialBodyResolveT
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("ClassInitializerHasNoValue.kt")
|
||||||
|
public void testClassInitializerHasNoValue() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/ClassInitializerHasNoValue.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("DeclarationsBefore.kt")
|
@TestMetadata("DeclarationsBefore.kt")
|
||||||
public void testDeclarationsBefore() throws Exception {
|
public void testDeclarationsBefore() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/DeclarationsBefore.kt");
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/DeclarationsBefore.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user