Files
kotlin/compiler/testData/codegen/bytecodeText/notNullAssertions/assertionForNotNullCaptured.kt
Mikhail Zarechenskiy 5c5635ce20 Fix codegen & bytecode tests after unifying exceptions in JVM backend
See KT-22275 for details
2020-01-20 16:36:03 +03:00

11 lines
227 B
Kotlin
Vendored

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