[FIR] Remove or replace whole expressions in FIR diagnostic messages

FIR expressions rendered by FirRenderer don't look very nice in error
messages anyway, and additionally, they can become arbitrarily large,
so we shouldn't use them in messages.

#KT-59449 Fixed
This commit is contained in:
Kirill Rakhman
2023-06-20 17:06:58 +02:00
committed by Space Team
parent 0f0f0d604f
commit 6318da0f02
21 changed files with 110 additions and 47 deletions
@@ -0,0 +1,7 @@
// RENDER_DIAGNOSTICS_FULL_TEXT
fun String?.repro(): Boolean {
return <!SENSELESS_COMPARISON!>this?.let {
return false
} == true<!>
}