Files
kotlin-fork/compiler/testData/codegen/box/binaryOp/kt6747_identityEquals.kt
T
2019-11-19 11:00:09 +03:00

11 lines
231 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Test {
fun check(a: Any?): String {
if (this === a) return "Fail 1"
if (!(this !== a)) return "Fail 2"
return "OK"
}
}
fun box(): String = Test().check("String")