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:
committed by
TeamCityServer
parent
d60a8f9baa
commit
6e3009b82e
+11
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user