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: FirLocalScope
            Properties:
                FirValueParameterSymbol c: R|kotlin/Any|
                FirValueParameterSymbol p: R|kotlin/Boolean|
    Element 7
        Context parameters:
            FirValueParameterSymbol c: R|kotlin/Any|
                Type: kotlin.Any
    Element 8
        Scope: FirLocalScope

FILE: [ResolvedTo(IMPORTS)] afterSmartCastFunction.kt
    context([ResolvedTo(RAW_FIR)] <unused var>: Int)
    public? final? [ResolvedTo(RAW_FIR)] fun bar(): R|kotlin/Unit| { LAZY_BLOCK }
    public? final? [ResolvedTo(RAW_FIR)] fun bar(): R|kotlin/Unit| { LAZY_BLOCK }
    context([ResolvedTo(BODY_RESOLVE)] c: R|kotlin/Any|)
    public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/Boolean|): R|kotlin/Unit| {
        when () {
            (R|<local>/c| is R|kotlin/Int|) ->  {
                context(R|<local>/c|) R|/bar|()
            }
        }

        R|/bar|()
    }