Fixed Introduce Parameter broken by earlier changes in KotlinParameterInfo

This commit is contained in:
Valentin Kipyatkov
2020-04-08 13:03:05 +03:00
parent c9509380c3
commit 76a573921e
@@ -42,6 +42,11 @@ class KotlinChangeSignatureProcessor(
changeInfo: KotlinChangeInfo,
private val commandName: String
) : ChangeSignatureProcessorBase(project, KotlinChangeInfoWrapper(changeInfo)) {
init {
// we must force collecting references to other parameters now before the signature is changed
changeInfo.newParameters.forEach { it.defaultValueParameterReferences }
}
val ktChangeInfo
get() = changeInfo.delegate!!