identityEquals is deprecated

This commit is contained in:
Mikhail Glukhikh
2015-09-25 19:44:04 +03:00
parent aada13c91f
commit 4b9d136ced
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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,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
}
}
+1
View File
@@ -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
/**