a280599969
#KT-6747 Fixed
11 lines
253 B
Kotlin
11 lines
253 B
Kotlin
class Test {
|
|
fun check(a: Any?): String {
|
|
if (this === a) return "Fail 1"
|
|
if (!(this !== a)) return "Fail 2"
|
|
if (this.identityEquals(a)) return "Fail 3"
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
fun box(): String = Test().check("String")
|