Files
kotlin/compiler/testData/codegen/box/localFunctions/parameterAsDefaultValue.kt
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

11 lines
154 B
Kotlin
Vendored

fun foo(): String {
fun bar(x: String, y: String = x): String {
return y
}
return bar("OK")
}
fun box(): String {
return foo()
}