Fix for change signature refactoring type resolve

Fixed #KT-37451
This commit is contained in:
Igor Yakovlev
2020-03-13 17:53:52 +03:00
parent 64bcc6d54f
commit 3dc898b8ca
@@ -461,7 +461,7 @@ class KotlinChangeSignatureDialog(
private fun KtTypeCodeFragment.createCopy() =
KtPsiFactory(this).createTypeCodeFragment(text, this)
KtPsiFactory(this).createTypeCodeFragment(text, this.context)
fun PsiCodeFragment?.getTypeInfo(isCovariant: Boolean, forPreview: Boolean, reanalyse: Boolean = false): KotlinTypeInfo {
if (this !is KtTypeCodeFragment) return KotlinTypeInfo(isCovariant)