Imitate support for suspend modifier on parameterless lambdas

#KT-22766 In Progress
This commit is contained in:
Denis Zharkov
2018-01-24 18:29:38 +03:00
parent 5c81d9fd6b
commit ef01f641f3
10 changed files with 99 additions and 0 deletions
@@ -0,0 +1,9 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin
@kotlin.internal.InlineOnly
public inline fun <R> suspend(noinline block: suspend () -> R): suspend () -> R = block