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:
Valentin Kipyatkov
2015-10-07 15:05:14 +03:00
parent 9b0292f4c0
commit af9e66da62
3 changed files with 26 additions and 0 deletions
@@ -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
@@ -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");