Support equals/hashCode for fun interfaces in JVM and JVM_IR
#KT-33455 Fixed
This commit is contained in:
committed by
Alexander Udalov
parent
de461dd9a5
commit
9fa8e009c6
@@ -0,0 +1,14 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
fun interface FunInterface {
|
||||
fun invoke()
|
||||
}
|
||||
|
||||
private fun id(f: FunInterface): Any = f
|
||||
|
||||
fun box(): String {
|
||||
if (id { "lambda" } == id { "lambda" }) return "Fail: SAMs over lambdas are never equal"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user