order to support cross-closure type inference, this must be
    applies to nested scopes in top-down order.
    c