Files
kotlin-fork/compiler/testData/ir/irText/expressions/sam/samConstructors.kt
T

9 lines
171 B
Kotlin
Vendored

// WITH_JDK
fun test1() = Runnable { }
fun test2(a: () -> Unit) = Runnable(a)
fun foo() {}
fun test3() = Runnable(::foo)
fun test4() = Comparator<Int> { a, b -> a - b }