mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
This allows to use type parameters and value paramters in default value expressions #KT-7984 Fixed #KT-7985 Fixed
8 lines
208 B
Plaintext
Vendored
8 lines
208 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) }.invoke()) = a + b - n - 1
|
|
}
|