Files
kotlin-fork/compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullCaptured.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

12 lines
257 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A<T> {
fun add(element: T) {}
}
public fun <R : Any> foo(x: MutableCollection<in R>, block: java.util.AbstractList<R>) {
x.add(block.get(0))
}
// 0 checkExpressionValueIsNotNull
// 1 checkNotNullExpressionValue