mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
12 lines
228 B
Kotlin
Vendored
12 lines
228 B
Kotlin
Vendored
// KOTLIN_CONFIGURATION_FLAGS: +JVM.DISABLE_PARAM_ASSERTIONS
|
|
|
|
class A<T> {
|
|
fun add(element: T) {}
|
|
}
|
|
|
|
public fun <R> foo(x: MutableCollection<in R>, block: () -> R) {
|
|
x.add(block())
|
|
}
|
|
|
|
// 0 kotlin/jvm/internal/Intrinsics
|