Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/parameterAsDefaultValueInLocalFunction.kt
T
2021-05-10 14:26:14 +03:00

9 lines
230 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo() {
fun foo(x: Int = <!UNINITIALIZED_PARAMETER!>x<!>) {}
fun bar(x: String, y: String = x) {}
fun baz(x: Int = <!UNINITIALIZED_PARAMETER!>y<!>, y: Int) {}
}