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
    Element 7
        Scope: FirLocalScope
            Functions
                FirNamedFunctionSymbol local final fun update(): R|kotlin/Unit|
            Properties:
                FirLocalPropertySymbol lvar value: R|kotlin/String?|
    Element 8
        Scope: FirLocalScope
Expression Stability: CAPTURED_VARIABLE
Smart Casts:
    FirLocalPropertySymbol lvar value: R|kotlin/String?|
    Stability: CAPTURED_VARIABLE
    Types:
        kotlin.Any

FILE: [ResolvedTo(IMPORTS)] unstableCapturedLocalVar.kt
    public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/Unit| {
        [ResolvedTo(BODY_RESOLVE)] lvar value: R|kotlin/String?| = String()
        local final [ResolvedTo(BODY_RESOLVE)] fun update(): R|kotlin/Unit| {
            R|<local>/value| = Null(null)
        }

        when () {
            !=(R|<local>/value|, Null(null)) ->  {
                R|<local>/update|()
                R|<local>/value|
            }
        }

    }
