mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
20 lines
372 B
Kotlin
Vendored
20 lines
372 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
interface B {
|
|
fun b_fun() {}
|
|
}
|
|
|
|
fun test(param: String) {
|
|
|
|
val local_val = 4
|
|
val bar = fun B.(fun_param: Int) {
|
|
param.length
|
|
b_fun()
|
|
val inner_bar = local_val + fun_param
|
|
|
|
<!UNRESOLVED_REFERENCE!>bar<!>
|
|
}
|
|
|
|
<!UNRESOLVED_REFERENCE!>inner_bar<!>
|
|
<!UNRESOLVED_REFERENCE!>fun_param<!>
|
|
} |