From 3f52d031644ea2c827faae3c9ac046c6c5aca3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=5Bp=CA=B2=C9=B5s=5D?= Date: Fri, 11 Nov 2022 19:59:25 +0100 Subject: [PATCH] FIR: render entire declaration header in *_MISMATCH_ON_OVERRIDE (#5019) Otherwise it's really not clear what exactly the type is supposed to be. --- .../fir/analysis/diagnostics/FirErrorsDefaultMessages.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrorsDefaultMessages.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrorsDefaultMessages.kt index a35c1966aec..28f8426c24a 100644 --- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrorsDefaultMessages.kt +++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirErrorsDefaultMessages.kt @@ -1333,19 +1333,19 @@ object FirErrorsDefaultMessages : BaseDiagnosticRendererFactory() { RETURN_TYPE_MISMATCH_ON_OVERRIDE, "Return type of ''{0}'' is not a subtype of the return type of the overridden member ''{1}''", DECLARATION_NAME, - DECLARATION_NAME + SYMBOL ) map.put( PROPERTY_TYPE_MISMATCH_ON_OVERRIDE, "Type of ''{0}'' is not a subtype of the overridden property ''{1}''", DECLARATION_NAME, - DECLARATION_NAME + SYMBOL ) map.put( VAR_TYPE_MISMATCH_ON_OVERRIDE, "Type of ''{0}'' doesn''t match the type of the overridden var-property ''{1}''", DECLARATION_NAME, - DECLARATION_NAME + SYMBOL ) map.put(