You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pinned_control_flow.rb
    path of file: ./repos/sorbet/test/testdata/infer
    
    the code of the file until where you have to start completion: # typed: true
c
    
  def post_pin
    while foo
        if foo
            a = 1 # error: Changing the type of a variable in a loop is not permitted
        else
            a = "1" # error: Changing the type of a variable in a loop is not permitted
        end