Change Signature: enable on primary constructor keyword (#2482)
#KT-19744 Fixed
This commit is contained in:
committed by
GitHub
parent
957a927790
commit
cbbdec5898
+14
@@ -808,6 +808,20 @@ class KotlinChangeSignatureTest : KotlinLightCodeInsightFixtureTestCase() {
|
||||
}
|
||||
}
|
||||
|
||||
fun testPrimaryConstructorOnConstructorKeyword() = doTest {
|
||||
val defaultValueForCall = KtPsiFactory(project).createExpression("\"foo\"")
|
||||
addParameter(
|
||||
KotlinParameterInfo(
|
||||
originalBaseFunctionDescriptor,
|
||||
-1,
|
||||
"s",
|
||||
KotlinTypeInfo(false, BUILT_INS.stringType),
|
||||
null,
|
||||
defaultValueForCall
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
fun testJavaConstructorInDelegationCall() {
|
||||
doJavaTest { newParameters.add(ParameterInfoImpl(-1, "s", stringPsiType, "\"foo\"")) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user