KT-10631 Consider creating a synthetic property even when the setter returns 'this'
#KT-10631 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
interface JavaClass{
|
||||
public int getSomething();
|
||||
|
||||
public JavaClass setSomething(int value);
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun foo(javaClass: JavaClass) {
|
||||
javaClass.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "something", attributes: "bold" }
|
||||
// EXIST: { lookupString: "setSomething", attributes: "bold" }
|
||||
// ABSENT: getSomething
|
||||
+6
@@ -353,6 +353,12 @@ public class MultiFileJvmBasicCompletionTestGenerated extends AbstractMultiFileJ
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("SyntheticExtensionNonVoidSetter")
|
||||
public void testSyntheticExtensionNonVoidSetter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/SyntheticExtensionNonVoidSetter/");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevelFunction")
|
||||
public void testTopLevelFunction() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/basic/multifile/TopLevelFunction/");
|
||||
|
||||
Reference in New Issue
Block a user