Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/inference/plusAssignOnArrayList.kt
T
Denis.Zharkov a33d9df0cd NI: Support forking inference with heuristics
Mostly, it only affects FIR

It partially allows to consider several variance of constraints like
A<Int> & A<T> <: A<X_var> that are mostly brought by smart casts

^KT-49542 Fixed
^KT-50489 Relates
2022-01-11 20:45:55 +03:00

10 lines
127 B
Kotlin
Vendored

// FIR_IDENTICAL
// SKIP_TXT
import java.util.*
val a = ArrayList<String>()
fun foo(l: List<String>) {
a.plusAssign(l)
}