compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    class_declaration {
      name: "A"
    }
  }
  declarations {
    impl {
      kind: InternalImpl
      impl_type {
        identifier {
          name: "A"
        }
      }
      interface {
        call {
          function {
            identifier {
              name: "ImplicitAs"
            }
          }
          argument {
            tuple_literal {
              fields {
                int_type_literal {
                }
              }
            }
          }
        }
      }
      members {
        function {
          name: "Convert"
          me_pattern {
            binding_pattern {
              name: "me"
              type {
                expression_pattern {
                  expression {
                    identifier {
                      name: "Self"
                    }
                  }
                }
              }
            }
          }
          param_pattern {
          }
          return_term {
            kind: Expression
            type {
              int_type_literal {
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  int_literal {
                    value: 1
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "a"
                type {
                  expression_pattern {
                    expression {
                      identifier {
                        name: "A"
                      }
                    }
                  }
                }
              }
            }
            init {
              struct_type_literal {
              }
            }
            is_returned: false
          }
        }
        statements {
          match {
            expression {
              tuple_literal {
                fields {
                  identifier {
                    name: "a"
                  }
                }
                fields {
                  identifier {
                    name: "a"
                  }
                }
              }
            }
            clauses {
              pattern {
                tuple_pattern {
                  fields {
                    expression_pattern {
                      expression {
                        int_literal {
                          value: 0
                        }
                      }
                    }
                  }
                  fields {
                    binding_pattern {
                      name: "n"
                      type {
                        expression_pattern {
                          expression {
                            int_type_literal {
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
              statement {
                block {
                  statements {
                    return_expression_statement {
                      expression {
                        int_literal {
                          value: 1
                        }
                      }
                    }
                  }
                }
              }
            }
            clauses {
              pattern {
                tuple_pattern {
                  fields {
                    binding_pattern {
                      name: "n"
                      type {
                        expression_pattern {
                          expression {
                            int_type_literal {
                            }
                          }
                        }
                      }
                    }
                  }
                  fields {
                    expression_pattern {
                      expression {
                        int_literal {
                          value: 0
                        }
                      }
                    }
                  }
                }
              }
              statement {
                block {
                  statements {
                    return_expression_statement {
                      expression {
                        int_literal {
                          value: 1
                        }
                      }
                    }
                  }
                }
              }
            }
            clauses {
              pattern {
                expression_pattern {
                  expression {
                    tuple_literal {
                      fields {
                        int_literal {
                          value: 1
                        }
                      }
                      fields {
                        int_literal {
                          value: 1
                        }
                      }
                    }
                  }
                }
              }
              statement {
                block {
                  statements {
                    return_expression_statement {
                      expression {
                        int_literal {
                          value: 0
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
        statements {
          return_expression_statement {
            expression {
              int_literal {
                value: 1
              }
            }
          }
        }
      }
    }
  }
}
