Files
kotlin-fork/idea/testData/refactoring/extractFunction/initializers/functions/localFunctionParameters.kt.after
T
Mikhail Zarechenskiy b17b3f4c63 Resolve local function parameters with function inner scope
This allows to use type parameters and value paramters in default value expressions

 #KT-7984 Fixed
 #KT-7985 Fixed
2017-04-17 16:21:06 +03:00

8 lines
195 B
Plaintext
Vendored

// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int defined in bar.foo
fun bar(n: Int) {
fun i(a: Int) = a + n
fun foo(a: Int, b: Int = i(a)) = a + b - n - 1
}