Add more tests for inline class equality
This commit is contained in:
committed by
Alexander Udalov
parent
cdc5e1347b
commit
b85b2d9af8
@@ -0,0 +1,14 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user