mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
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
This commit is contained in:
@@ -23,3 +23,5 @@ abstract class A2 : MutableCollection<String> {
|
||||
// 1 public final bridge contains\(Ljava/lang/Object;\)Z
|
||||
// 1 public final bridge remove\(Ljava/lang/Object;\)Z
|
||||
// 1 INVOKEVIRTUAL A[0-9]\.contains \(Ljava/lang/String;\)Z
|
||||
/* 2 INSTANCEOF: one for 'remove', one for 'contains' type-safe bridges */
|
||||
// 2 INSTANCEOF
|
||||
|
||||
Reference in New Issue
Block a user