diff --git a/idea/idea-completion/testData/smart/SuperConstructorArgument.kt b/idea/idea-completion/testData/smart/SuperConstructorArgument.kt new file mode 100644 index 00000000000..ef1f9e274fb --- /dev/null +++ b/idea/idea-completion/testData/smart/SuperConstructorArgument.kt @@ -0,0 +1,8 @@ +open class B(p: Int) + +class C : B { + constructor(pInt: Int, pString: String) : super() +} + +// EXIST: pInt +// ABSENT: pString diff --git a/idea/idea-completion/testData/smart/ThisConstructorArgument.kt b/idea/idea-completion/testData/smart/ThisConstructorArgument.kt new file mode 100644 index 00000000000..f4f621879a8 --- /dev/null +++ b/idea/idea-completion/testData/smart/ThisConstructorArgument.kt @@ -0,0 +1,6 @@ +class C(p: Int) { + constructor(pString: String, pInt: Int) : this() +} + +// EXIST: pInt +// ABSENT: pString diff --git a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java index 7cc8333330d..9807bf35923 100644 --- a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java +++ b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/JvmSmartCompletionTestGenerated.java @@ -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");