blob: 1ce6665489435e32aed0fcb9d349d7fa168ec25e [file] [log] [blame]
fun String.k(): () -> String = { -> this }
fun test1(f: () -> Unit) = f()
fun test2(f: String.() -> Unit) = "hello".f()
fun test3() = "hello".k()()
fun test4(ns: String?) = ns?.k()?.invoke()