e822e871f5
* Convert lambda to reference: support a function which has default parameters/unit return type/suspendability #KT-39532 Fixed
6 lines
182 B
Kotlin
Vendored
6 lines
182 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
// COMPILER_ARGUMENTS: -XXLanguage:-FunctionReferenceWithDefaultValueAsOtherType
|
|
|
|
fun foo(z: Int, y: Int = 0) = y + z
|
|
|
|
val x = { arg: Int <caret>-> foo(arg) } |