mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
11 lines
227 B
Kotlin
Vendored
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))
|
|
}
|
|
|
|
// 1 checkExpressionValueIsNotNull
|
|
// 0 checkNotNullExpressionValue
|