Files
kotlin/idea/testData/refactoring/extractFunction/parameters/capturedFunctions/localFun.kt.after
Valentin Kipyatkov 7f0063013c Corrected test data
2016-10-11 23:38:52 +03:00

12 lines
407 B
Plaintext
Vendored

// OPTIONS: true, false, false, false, true, false
// PARAM_DESCRIPTOR: local final fun bar(m: kotlin.Int): kotlin.Int defined in foo
// PARAM_DESCRIPTOR: value-parameter n: kotlin.Int defined in foo
// PARAM_TYPES: (m: kotlin.Int) -> kotlin.Int
// PARAM_TYPES: kotlin.Int
fun foo(n: Int): Int {
fun bar(m: Int) = m * n
return i(::bar, n)
}
private fun i(bar: (m: Int) -> Int, n: Int) = bar(n + 1)