JVM: Suspend converted references inherit AdaptedFunctionReference

This commit is contained in:
Dmitry Petrov
2020-04-28 13:40:00 +03:00
parent deecb6a28e
commit 878e838f0b
8 changed files with 58 additions and 11 deletions
@@ -26,6 +26,11 @@ public class FunctionReference extends CallableReference implements FunctionBase
* fun use(f: () -> Unit) {}
* use(::target)
* </pre></ul>
* <ul>2 - whether suspend conversion happened, i.e.,<pre>
* fun target() {}
* fun useSuspend(f: suspend () -> Unit) {}
* useSuspend(::target)
* </pre></ul>
* </li>
*/
@SinceKotlin(version = "1.4")