Files
kotlin/compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/notNullParamMC.kt
Denis Zharkov d259b91143 Add MutableMap.remove(K, V) as built-in declaration
Use PlatformDependent annotation to guarantee it's only be available for JDK8
Also adjust type-safe bridges and mutable collection stubs generation
2016-04-29 15:08:54 +03:00

12 lines
300 B
Kotlin
Vendored

abstract class A<T : Any> : MutableCollection<T> {
override fun contains(o: T): Boolean {
throw UnsupportedOperationException()
}
}
// 1 bridge
// 1 public final bridge size
// 0 INSTANCEOF
/* Only 1 IFNULL should be within contains method (because T is not nullable) */
// 1 IFNULL