JVM_IR KT-47939 equality for fun interface constructor references

This commit is contained in:
Dmitry Petrov
2021-11-30 15:08:33 +03:00
committed by TeamCityServer
parent 50b0dae786
commit e179598457
15 changed files with 226 additions and 13 deletions
@@ -31,6 +31,12 @@ public class FunctionReference extends CallableReference implements FunctionBase
* fun useSuspend(f: suspend () -> Unit) {}
* useSuspend(::target)
* </pre></ul>
* <ul>4 - whether it is a synthetic <code>fun interface</code> constructor, i.e., <pre>
* fun interface KRunnable {
* fun run()
* }
* val kr: (() -> Unit) -> KRunnable = ::KRunnable
* </pre></ul>
* </li>
*/
@SinceKotlin(version = "1.4")