K1: report swallowed diagnostic about upper bound violation

#KT-55055 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-02-06 09:30:14 +01:00
committed by Space Team
parent b148df15a9
commit 930237b60e
15 changed files with 90 additions and 5 deletions
@@ -0,0 +1,11 @@
// !RENDER_DIAGNOSTICS_FULL_TEXT
// ISSUE: KT-55055
// FIR_DUMP
fun <T : Number> printGenericNumber(t: T) = println("Number is $t")
fun main() {
buildList { // inferred into MutableList<String>
add("Boom")
<!UPPER_BOUND_VIOLATION_IN_CONSTRAINT!>printGenericNumber(this[0])<!>
}
}