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

16 lines
259 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
inline class A(val x: String)
class B {
override fun equals(other: Any?) = true
}
fun box(): String {
val x: Any? = B()
val y: A = A("")
if (x != y) return "Fail"
return "OK"
}