2f367b013a
Pass constraint errors from the integration system into a candidate to make sure it is reported later. Related to KT-59426, KT-59437, KT-53749 #KT-55168 Submitted
12 lines
289 B
Kotlin
Vendored
12 lines
289 B
Kotlin
Vendored
// !RENDER_DIAGNOSTICS_FULL_TEXT
|
|
// ISSUE: KT-55055
|
|
// FIR_DUMP
|
|
fun <T : Number> printGenericNumber(t: T) = println("Number is $t")
|
|
|
|
fun main() {
|
|
<!NEW_INFERENCE_ERROR!>buildList { // inferred into MutableList<String>
|
|
add("Boom")
|
|
printGenericNumber(this[0])
|
|
}<!>
|
|
}
|