Tower Data Context:
    Element 0
        Scope: FirDefaultStarImportingScope
    Element 1
        Scope: FirExplicitStarImportingScope
    Element 2
        Scope: FirDefaultSimpleImportingScope
    Element 3
        Scope: FirDefaultSimpleImportingScope
    Element 4
        Scope: FirPackageMemberScope
    Element 5
        Scope: FirExplicitSimpleImportingScope
    Element 6
        Scope: FirMemberTypeParameterScope
            Classifiers:
                FirTypeParameterSymbol T : R|Another?|
    Element 7
        Scope: FirLocalScope
            Properties:
                FirValueParameterSymbol a: R|T|
                FirValueParameterSymbol action: R|@ContextFunctionTypeParams(1) context(D) (@ContextFunctionTypeParams(1) @ExtensionFunctionType kotlin/Function2<B, C, kotlin/Unit>) -> kotlin/Unit|
    Element 8
        Context parameters:
            FirValueParameterSymbol a: R|T|
                Type: BaseA & T & Any
    Element 9
        Scope: FirLocalScope
    Element 10
        Scope: FirLocalScope
            Properties:
                FirLocalPropertySymbol lval d: R|D|
Smart Casts:
    FirValueParameterSymbol a: R|T|
    Types:
        BaseA
        kotlin.Any

FILE: [ResolvedTo(IMPORTS)] nestedContextParameterAfter.kt
    public final? [ResolvedTo(RAW_FIR)] interface BaseA : R|kotlin/Any| {
    }
    public final? [ResolvedTo(RAW_FIR)] interface Another : R|kotlin/Any| {
    }
    public final? [ResolvedTo(RAW_FIR)] class A : BaseA, Another {
        public? [ResolvedTo(RAW_FIR)] constructor(): R|A| {
            LAZY_super<<implicit>>
        }

    }
    public final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
        public? [ResolvedTo(RAW_FIR)] constructor(): R|B| {
            LAZY_super<R|kotlin/Any|>
        }

    }
    public final? [ResolvedTo(RAW_FIR)] class C : R|kotlin/Any| {
        public? [ResolvedTo(RAW_FIR)] constructor(): R|C| {
            LAZY_super<R|kotlin/Any|>
        }

    }
    public final? [ResolvedTo(RAW_FIR)] class D : R|kotlin/Any| {
        public? [ResolvedTo(RAW_FIR)] constructor(): R|D| {
            LAZY_super<R|kotlin/Any|>
        }

    }
    context([ResolvedTo(RAW_FIR)] <unused var>: A, [ResolvedTo(RAW_FIR)] <unused var>: B, [ResolvedTo(RAW_FIR)] <unused var>: C, [ResolvedTo(RAW_FIR)] <unused var>: D)
    public? final? [ResolvedTo(RAW_FIR)] fun check(): R|kotlin/Unit| { LAZY_BLOCK }
    context([ResolvedTo(BODY_RESOLVE)] a: R|T|)
    public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T : R|Another?|> usage([ResolvedTo(BODY_RESOLVE)] action: R|@ContextFunctionTypeParams(1) context(D) (@ContextFunctionTypeParams(1) @ExtensionFunctionType kotlin/Function2<B, C, kotlin/Unit>) -> kotlin/Unit|): R|kotlin/Unit| {
        when () {
            (R|<local>/a| is R|BaseA|) ->  {
                [ResolvedTo(BODY_RESOLVE)] lval d: R|D| = R|/D.D|()
                R|kotlin/with|<R|D|, R|kotlin/Unit|>(R|<local>/d|, <L> = [ResolvedTo(BODY_RESOLVE)] with@fun [ResolvedTo(BODY_RESOLVE)] R|D|.<anonymous>(): R|kotlin/Unit| <inline=Inline, kind=EXACTLY_ONCE>  {
                    when () {
                        (R|<local>/a| is R|A|) ->  {
                            R|<local>/action|.R|SubstitutionOverride<kotlin/Function2.invoke: R|kotlin/Unit|>|(this@R|special/anonymous|, <L> = context([ResolvedTo(BODY_RESOLVE)] <unused var>: R|B|) [ResolvedTo(BODY_RESOLVE)] action@fun [ResolvedTo(BODY_RESOLVE)] R|C|.<anonymous>(): R|kotlin/Unit| <inline=NoInline>  {
                                context(R|<local>/a|, R|<local>/<unused var>|, this@R|special/anonymous|, this@R|special/anonymous|) R|/check|()
                            }
                            )
                        }
                    }

                }
                )
                Q|kotlin/Unit|
            }
        }

    }