Drop identityEquals from builtins, compiler and tests.
This commit is contained in:
@@ -16,13 +16,6 @@
|
||||
|
||||
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
|
||||
|
||||
/**
|
||||
* Returns a string representation of the object. Can be called with a null receiver, in which case
|
||||
* it returns the string "null".
|
||||
|
||||
@@ -1176,15 +1176,5 @@ public abstract class KotlinBuiltIns {
|
||||
return getNullableAnyType();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// GET FUNCTION
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@NotNull
|
||||
public FunctionDescriptor getIdentityEquals() {
|
||||
return first(getBuiltInsPackageFragment().getMemberScope().getContributedFunctions(Name.identifier("identityEquals"),
|
||||
NoLookupLocation.FROM_BUILTINS));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ object OperatorNameConventions {
|
||||
@JvmField val SET_VALUE = Name.identifier("setValue")
|
||||
|
||||
@JvmField val EQUALS = Name.identifier("equals")
|
||||
@JvmField val IDENTITY_EQUALS = Name.identifier("identityEquals")
|
||||
@JvmField val COMPARE_TO = Name.identifier("compareTo")
|
||||
@JvmField val CONTAINS = Name.identifier("contains")
|
||||
@JvmField val INVOKE = Name.identifier("invoke")
|
||||
|
||||
Reference in New Issue
Block a user