blob: 897448355e8b48b705e1b35108c982ea25ef1d0a [file]
// WITH_STDLIB
class ExtensionReceiver
typealias SuspendExtensionFunction = suspend ExtensionReceiver.() -> Unit
suspend fun ExtensionReceiver.extensionMethod() {}
fun test() {
val map = mutableMapOf<Unit, SuspendExtensionFunction>()
map[Unit] = {
extensionMethod()
}
}
fun box(): String {
test()
return "OK"
}