Files
kotlin-fork/compiler/testData/codegen/box/binaryOp/kt6747_identityEquals.kt
T
2016-01-22 05:54:38 +03:00

10 lines
201 B
Kotlin
Vendored

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")