e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
8 lines
96 B
Plaintext
Vendored
8 lines
96 B
Plaintext
Vendored
fun foo(f: (x: Int) -> Unit) {}
|
|
|
|
fun bar(x: Int, y: Int = 42) {}
|
|
|
|
fun test() {
|
|
foo(::bar)
|
|
}
|