blob: f36e65925ca3dbe14f4729d4acd3a651d997ff36 [file] [log] [blame]
// WITH_JDK
// TARGET_BACKEND: JVM
fun test1() = Runnable { }
fun test2(a: () -> Unit) = Runnable(a)
fun foo() {}
fun test3() = Runnable(::foo)
fun test4() = Comparator<Int> { a, b -> a - b }