diff --git a/compiler/fir/checkers/checkers-component-generator/src/org/jetbrains/kotlin/fir/checkers/generator/diagnostics/FirDiagnosticsList.kt b/compiler/fir/checkers/checkers-component-generator/src/org/jetbrains/kotlin/fir/checkers/generator/diagnostics/FirDiagnosticsList.kt index 5f4b860c480..377fe7f4393 100644 --- a/compiler/fir/checkers/checkers-component-generator/src/org/jetbrains/kotlin/fir/checkers/generator/diagnostics/FirDiagnosticsList.kt +++ b/compiler/fir/checkers/checkers-component-generator/src/org/jetbrains/kotlin/fir/checkers/generator/diagnostics/FirDiagnosticsList.kt @@ -375,8 +375,8 @@ object DIAGNOSTICS_LIST : DiagnosticList() { val TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER by error() val RETURN_TYPE_MISMATCH by error(PositioningStrategy.WHOLE_ELEMENT) { - parameter("expected") - parameter("actual") + parameter("expectedType") + parameter("actualType") } val CYCLIC_GENERIC_UPPER_BOUND by error() @@ -591,8 +591,8 @@ object DIAGNOSTICS_LIST : DiagnosticList() { parameter("actualType") } val INITIALIZER_TYPE_MISMATCH by error(PositioningStrategy.ASSIGNMENT_VALUE) { - parameter("expected") - parameter("actual") + parameter("expectedType") + parameter("actualType") } val GETTER_VISIBILITY_DIFFERS_FROM_PROPERTY_VISIBILITY by error(PositioningStrategy.VISIBILITY_MODIFIER) val SETTER_VISIBILITY_INCONSISTENT_WITH_PROPERTY_VISIBILITY by error(PositioningStrategy.VISIBILITY_MODIFIER) @@ -760,8 +760,8 @@ object DIAGNOSTICS_LIST : DiagnosticList() { } val DELEGATE_SPECIAL_FUNCTION_RETURN_TYPE_MISMATCH by error { parameter("delegateFunction") - parameter("expected") - parameter("actual") + parameter("expectedType") + parameter("actualType") } val UNDERSCORE_IS_RESERVED by error(PositioningStrategy.RESERVED_UNDERSCORE) diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnostics.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnostics.kt index 018c605ae1c..ae77f9e96d2 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnostics.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnostics.kt @@ -830,8 +830,8 @@ sealed class KtFirDiagnostic : KtDiagnosticWithPsi { abstract class ReturnTypeMismatch : KtFirDiagnostic() { override val diagnosticClass get() = ReturnTypeMismatch::class - abstract val expected: KtType - abstract val actual: KtType + abstract val expectedType: KtType + abstract val actualType: KtType } abstract class CyclicGenericUpperBound : KtFirDiagnostic() { @@ -1219,8 +1219,8 @@ sealed class KtFirDiagnostic : KtDiagnosticWithPsi { abstract class InitializerTypeMismatch : KtFirDiagnostic() { override val diagnosticClass get() = InitializerTypeMismatch::class - abstract val expected: KtType - abstract val actual: KtType + abstract val expectedType: KtType + abstract val actualType: KtType } abstract class GetterVisibilityDiffersFromPropertyVisibility : KtFirDiagnostic() { @@ -1497,8 +1497,8 @@ sealed class KtFirDiagnostic : KtDiagnosticWithPsi { abstract class DelegateSpecialFunctionReturnTypeMismatch : KtFirDiagnostic() { override val diagnosticClass get() = DelegateSpecialFunctionReturnTypeMismatch::class abstract val delegateFunction: String - abstract val expected: KtType - abstract val actual: KtType + abstract val expectedType: KtType + abstract val actualType: KtType } abstract class UnderscoreIsReserved : KtFirDiagnostic() { diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnosticsImpl.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnosticsImpl.kt index 8dc0aeda12c..ce9d71c7eed 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnosticsImpl.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/diagnostics/KtFirDiagnosticsImpl.kt @@ -1343,8 +1343,8 @@ internal class TypeParameterOfPropertyNotUsedInReceiverImpl( } internal class ReturnTypeMismatchImpl( - override val expected: KtType, - override val actual: KtType, + override val expectedType: KtType, + override val actualType: KtType, firDiagnostic: FirPsiDiagnostic<*>, override val token: ValidityToken, ) : KtFirDiagnostic.ReturnTypeMismatch(), KtAbstractFirDiagnostic { @@ -1981,8 +1981,8 @@ internal class WrongSetterParameterTypeImpl( } internal class InitializerTypeMismatchImpl( - override val expected: KtType, - override val actual: KtType, + override val expectedType: KtType, + override val actualType: KtType, firDiagnostic: FirPsiDiagnostic<*>, override val token: ValidityToken, ) : KtFirDiagnostic.InitializerTypeMismatch(), KtAbstractFirDiagnostic { @@ -2430,8 +2430,8 @@ internal class DelegateSpecialFunctionNoneApplicableImpl( internal class DelegateSpecialFunctionReturnTypeMismatchImpl( override val delegateFunction: String, - override val expected: KtType, - override val actual: KtType, + override val expectedType: KtType, + override val actualType: KtType, firDiagnostic: FirPsiDiagnostic<*>, override val token: ValidityToken, ) : KtFirDiagnostic.DelegateSpecialFunctionReturnTypeMismatch(), KtAbstractFirDiagnostic {