Files
kotlin/compiler/testData/codegen/bytecodeText/builtinFunctions/genericParameterBridge/nullableAnyMC.kt
Denis Zharkov fa99ea1e98 Generate type-safe barrier in method body
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
2015-11-17 16:27:02 +03:00

11 lines
215 B
Kotlin
Vendored

abstract class A8 : MutableCollection<Any?> {
override fun contains(o: Any?): Boolean {
throw UnsupportedOperationException()
}
}
// 1 bridge
// 1 public final bridge size
// 0 INSTANCEOF
// 0 NULL