program main
  fn immediate_second() -> string
    index : string
      array : (array string 3)
        string "sun" : string
        string "moon" : string
        string "star" : string
      int 1 : i32
  fn local_pick() -> string
    local let words : unit
      array : (array string 3)
        string "red" : string
        string "green" : string
        string "blue" : string
    index : string
      var words : (array string 3)
      int 2 : i32
  fn main() -> i32
    if : i32
      binary = : bool
        call local_pick : string
        string "blue" : string
      int 0 : i32
      int 1 : i32
  test "string immediate array index"
    binary = : bool
      call immediate_second : string
      string "moon" : string
  test "string local array index"
    binary = : bool
      call local_pick : string
      string "blue" : string
