Files
kotlin-fork/compiler/testData/codegen/box/funInterface/equality/simpleLambdas.kt
T
2020-04-29 12:15:50 +02:00

15 lines
279 B
Kotlin
Vendored

// 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"
}