blob: 1870346d06eddf20f9c7621d3275e3009b1bdd65 [file]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +JvmInlineMultiFieldValueClasses
OPTIONAL_JVM_INLINE_ANNOTATION
value 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"
}