mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
In cases when signature of special bridge is the same as current method, but type is not 'Any?'. Also there is tiny optimization: only null check needed if value parameter type is mapped to Object, but it's not nullable. #KT-9973 Fixed
12 lines
306 B
Kotlin
Vendored
12 lines
306 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 IFNONNULL should be within contains method (because T is not nullable) */
|
|
// 1 IFNONNULL
|