From e12f3ff88a18aa0503b539e87c4125e9adcf27c9 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Wed, 9 Jun 2021 19:54:40 +0200 Subject: [PATCH] FIR IDE: fix compilation --- .../kotlin/idea/quickfix/fixes/TypeMismatchFactories.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }