identityEquals is deprecated
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
package-fragment kotlin
|
||||
|
||||
public fun </*0*/ reified T> arrayOfNulls(/*0*/ size: kotlin.Int): kotlin.Array<T?>
|
||||
public fun kotlin.Any?.identityEquals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
@kotlin.Deprecated(replaceWith = kotlin.ReplaceWith(expression = "this === other", imports = {}), value = "This function is deprecated, use === instead") public fun kotlin.Any?.identityEquals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public operator fun kotlin.String?.plus(/*0*/ other: kotlin.Any?): kotlin.String
|
||||
public fun kotlin.Any?.toString(): kotlin.String
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// No supertype at all
|
||||
class A1 {
|
||||
fun test() {
|
||||
<!SUPER_CANT_BE_EXTENSION_RECEIVER!>super<!>.identityEquals(null) // Call to an extension function
|
||||
<!SUPER_CANT_BE_EXTENSION_RECEIVER!>super<!>.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>identityEquals<!>(null) // Call to an extension function
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,7 @@ package kotlin
|
||||
* Returns true if the receiver and the [other] object are the same object instance, or if they
|
||||
* are both null.
|
||||
*/
|
||||
@Deprecated("This function is deprecated, use === instead", ReplaceWith("this === other"))
|
||||
public fun Any?.identityEquals(other: Any?): Boolean // = this === other
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user