Drop identityEquals from builtins, compiler and tests.
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// OPTIONS: usages
|
||||
// FIND_BY_REF
|
||||
|
||||
class A(val n: Int) {
|
||||
override fun equals(other: Any?): Boolean = other is A && other.n == n
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A(0) == A(1)
|
||||
A(0) != A(1)
|
||||
A(0) equals A(1)
|
||||
A(0) <caret>identityEquals A(1)
|
||||
A(0) === A(1)
|
||||
A(0) !== A(1)
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
Function call (13: 10) A(0) identityEquals A(1)
|
||||
Function call (14: 10) A(0) === A(1)
|
||||
Function call (15: 10) A(0) !== A(1)
|
||||
@@ -16,8 +16,6 @@ fun foo() {
|
||||
oldFun1(oldFun2(10))
|
||||
|
||||
oldFun2()
|
||||
|
||||
1.identityEquals(2)
|
||||
}
|
||||
|
||||
fun unnecessarySafeCall(x: String) {
|
||||
|
||||
@@ -15,8 +15,6 @@ fun foo() {
|
||||
bar(bar(10 + 2) + 1)
|
||||
|
||||
oldFun2()
|
||||
|
||||
1 === 2
|
||||
}
|
||||
|
||||
fun unnecessarySafeCall(x: String) {
|
||||
|
||||
Reference in New Issue
Block a user