[FIR] Update diagnostic messages
This commit is contained in:
committed by
Space Team
parent
6cd9b5ec98
commit
de1c92a32f
+3
-1
@@ -115,7 +115,8 @@ class KtDiagnosticFactoryToRendererMap(val name: String) {
|
||||
private fun KtDiagnosticFactoryForDeprecation<*>.warningMessage(errorMessage: String): String {
|
||||
return buildString {
|
||||
append(errorMessage)
|
||||
append(". This will become an error")
|
||||
if (!errorMessage.endsWith(".")) append(".")
|
||||
append(" This will become an error")
|
||||
val sinceVersion = deprecatingFeature.sinceVersion
|
||||
if (sinceVersion != null) {
|
||||
append(" in Kotlin ")
|
||||
@@ -123,6 +124,7 @@ class KtDiagnosticFactoryToRendererMap(val name: String) {
|
||||
} else {
|
||||
append(" in a future release")
|
||||
}
|
||||
append(".")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user