mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
This allows to use type parameters and value paramters in default value expressions #KT-7984 Fixed #KT-7985 Fixed
11 lines
154 B
Kotlin
Vendored
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()
|
|
} |