mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Use PlatformDependent annotation to guarantee it's only be available for JDK8 Also adjust type-safe bridges and mutable collection stubs generation
12 lines
300 B
Kotlin
Vendored
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
|