KT-39532 Support intention to convert reference to lambda and vice versa for adapted references (#3495)
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
This commit is contained in:
committed by
GitHub
parent
a87b25d10e
commit
e822e871f5
+8
@@ -0,0 +1,8 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SuspendConversion
|
||||
fun foo(a: suspend () -> Unit) {}
|
||||
|
||||
fun action() {}
|
||||
|
||||
fun usage() {
|
||||
foo(::action)
|
||||
}
|
||||
Reference in New Issue
Block a user