mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
This allows to use type parameters and value paramters in default value expressions #KT-7984 Fixed #KT-7985 Fixed
6 lines
155 B
Kotlin
Vendored
6 lines
155 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
fun foo() {
|
|
fun bar(x: String, y: String = x) {}
|
|
fun baz(x: Int = <!UNINITIALIZED_PARAMETER!>y<!>, y: Int) {}
|
|
} |