13 lines
224 B
Kotlin
Vendored
13 lines
224 B
Kotlin
Vendored
|
|
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"
|
|
}
|