FIR: render entire declaration header in *_MISMATCH_ON_OVERRIDE (#5019)

Otherwise it's really not clear what exactly the type is supposed to be.
This commit is contained in:
[pʲɵs]
2022-11-11 19:59:25 +01:00
committed by GitHub
parent 9f470e2a4d
commit 3f52d03164
@@ -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(