JVM IR: generate adapted callable references as synthetic

As well as suspend conversion adapters, which are unsupported by default
right now.

 #KT-46259 Fixed
This commit is contained in:
Alexander Udalov
2021-05-05 16:28:38 +02:00
committed by TeamCityServer
parent d60a8f9baa
commit 6e3009b82e
9 changed files with 158 additions and 2 deletions
@@ -0,0 +1,11 @@
class A {
private fun defaultArgs(value: Int = 0, message: String = "hello"): String = message
private fun myApply(f: () -> String) {}
private fun myApplySuspend(f: suspend () -> String) {}
fun testDefaultArguments() {
myApply(::defaultArgs)
myApplySuspend(::defaultArgs)
}
}