mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
255 B
Kotlin
Vendored
13 lines
255 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// Missing IMPLICIT_NOTNULL casts
|
|
|
|
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))
|
|
}
|
|
|
|
// 1 checkExpressionValueIsNotNull
|