Change Signature: Use target declaration as a context for types
#KT-22387 Fixed
This commit is contained in:
+1
-1
@@ -402,7 +402,7 @@ class KotlinChangeSignatureDialog(
|
||||
|
||||
companion object {
|
||||
private fun createParametersInfoModel(descriptor: KotlinMethodDescriptor, defaultValueContext: PsiElement): KotlinCallableParameterTableModel {
|
||||
val typeContext = getTypeCodeFragmentContext(defaultValueContext)
|
||||
val typeContext = getTypeCodeFragmentContext(descriptor.baseDeclaration)
|
||||
return when (descriptor.kind) {
|
||||
KotlinMethodDescriptor.Kind.FUNCTION -> KotlinFunctionParameterTableModel(descriptor, typeContext, defaultValueContext)
|
||||
KotlinMethodDescriptor.Kind.PRIMARY_CONSTRUCTOR -> KotlinPrimaryConstructorParameterTableModel(descriptor, typeContext, defaultValueContext)
|
||||
|
||||
Reference in New Issue
Block a user