// RUN_PIPELINE_TILL: FRONTEND
// LANGUAGE: +ContextParameters
// ISSUE: KT-75017

fun test() {
    context(c: String)
    fun local() {
        c
    }

    <!UNRESOLVED_REFERENCE!>c<!>

    fun local2() {
        <!UNRESOLVED_REFERENCE!>c<!>
    }
}

/* GENERATED_FIR_TAGS: functionDeclaration, functionDeclarationWithContext, localFunction */
