diff --git a/idea/idea-fir/src/org/jetbrains/kotlin/idea/quickfix/fixes/TypeMismatchFactories.kt b/idea/idea-fir/src/org/jetbrains/kotlin/idea/quickfix/fixes/TypeMismatchFactories.kt index db24fe6723d..accdde3180d 100644 --- a/idea/idea-fir/src/org/jetbrains/kotlin/idea/quickfix/fixes/TypeMismatchFactories.kt +++ b/idea/idea-fir/src/org/jetbrains/kotlin/idea/quickfix/fixes/TypeMismatchFactories.kt @@ -24,11 +24,11 @@ object TypeMismatchFactories { getFixesForTypeMismatch(diagnostic.psi, diagnostic.expectedType, diagnostic.actualType) } - val assignmentTypeMismatch = diagnosticFixFactory { diagnostic -> + val assignmentTypeMismatch = diagnosticFixFactory(KtFirDiagnostic.AssignmentTypeMismatch::class) { diagnostic -> getFixesForTypeMismatch(diagnostic.psi, diagnostic.expectedType, diagnostic.actualType) } - val initializerTypeMismatch = diagnosticFixFactory { diagnostic -> + val initializerTypeMismatch = diagnosticFixFactory(KtFirDiagnostic.InitializerTypeMismatch::class) { diagnostic -> diagnostic.psi.initializer?.let { getFixesForTypeMismatch(it, diagnostic.expectedType, diagnostic.actualType) } ?: emptyList() }