Skip to content

Commit 0b176f6

Browse files
cypressiousSpace Team
authored andcommitted
[FIR] Fix missing linebreaks in rendering of NONE_APPLICABLE
#KT-80684 Fixed
1 parent ec97676 commit 0b176f6

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -450,15 +450,13 @@ object FirDiagnosticRenderers {
450450
for ((symbol, diagnostics) in list) {
451451
append(SYMBOL.render(symbol))
452452

453-
if (diagnostics.isEmpty()) {
454-
continue
455-
}
456-
457-
appendLine(":")
453+
if (diagnostics.isNotEmpty()) {
454+
appendLine(":")
458455

459-
diagnostics.forEach {
460-
append(" ")
461-
appendLine(it)
456+
diagnostics.forEach {
457+
append(" ")
458+
appendLine(it)
459+
}
462460
}
463461

464462
appendLine()
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
/noneApplicableMessage.fir.kt:(114,121): error: None of the following candidates is applicable:
22

3-
fun println(message: Any?): Unitfun println(message: Int): Unitfun println(message: Long): Unitfun println(message: Byte): Unitfun println(message: Short): Unitfun println(message: Char): Unitfun println(message: Boolean): Unitfun println(message: Float): Unitfun println(message: Double): Unitfun println(message: CharArray): Unit
3+
fun println(message: Any?): Unit
4+
fun println(message: Int): Unit
5+
fun println(message: Long): Unit
6+
fun println(message: Byte): Unit
7+
fun println(message: Short): Unit
8+
fun println(message: Char): Unit
9+
fun println(message: Boolean): Unit
10+
fun println(message: Float): Unit
11+
fun println(message: Double): Unit
12+
fun println(message: CharArray): Unit
13+
414

515
/noneApplicableMessage.fir.kt:(124,134): error: Unresolved reference 'unresolved'.

0 commit comments

Comments
 (0)