Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/callableReference/adaptedReference.kt
T
Alexander Udalov 6e3009b82e JVM IR: generate adapted callable references as synthetic
As well as suspend conversion adapters, which are unsupported by default
right now.

 #KT-46259 Fixed
2021-05-06 22:58:18 +03:00

12 lines
314 B
Kotlin
Vendored

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)
}
}