Checked that "KT-7441 Smart completion does not work for argument of "this(..)" or "super(..)" call in non-primary constructor declaration" has been fixed too
#KT-7441 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
open class B(p: Int)
|
||||
|
||||
class C : B {
|
||||
constructor(pInt: Int, pString: String) : super(<caret>)
|
||||
}
|
||||
|
||||
// EXIST: pInt
|
||||
// ABSENT: pString
|
||||
@@ -0,0 +1,6 @@
|
||||
class C(p: Int) {
|
||||
constructor(pString: String, pInt: Int) : this(<caret>)
|
||||
}
|
||||
|
||||
// EXIST: pInt
|
||||
// ABSENT: pString
|
||||
+12
@@ -467,6 +467,18 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("SuperConstructorArgument.kt")
|
||||
public void testSuperConstructorArgument() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/SuperConstructorArgument.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ThisConstructorArgument.kt")
|
||||
public void testThisConstructorArgument() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/ThisConstructorArgument.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("UnresolvedExpectedType.kt")
|
||||
public void testUnresolvedExpectedType() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smart/UnresolvedExpectedType.kt");
|
||||
|
||||
Reference in New Issue
Block a user