compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    class_declaration {
      name {
        name: "TypeLike"
      }
      members {
        impl {
          kind: InternalImpl
          impl_type {
            identifier {
              name: "Self"
            }
          }
          interface {
            call {
              function {
                identifier {
                  name: "ImplicitAs"
                }
              }
              argument {
                tuple_literal {
                  fields {
                    type_type_literal {
                    }
                  }
                }
              }
            }
          }
          members {
            function {
              name {
                name: "Convert"
              }
              self_pattern {
                binding_pattern {
                  name: "self"
                  type {
                    expression_pattern {
                      expression {
                        identifier {
                          name: "Self"
                        }
                      }
                    }
                  }
                }
              }
              param_pattern {
              }
              return_term {
                kind: Expression
                type {
                  type_type_literal {
                  }
                }
              }
              body {
                statements {
                  return_expression_statement {
                    expression {
                      int_type_literal {
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      members {
        function {
          name {
            name: "Make"
          }
          param_pattern {
          }
          return_term {
            kind: Expression
            type {
              identifier {
                name: "Self"
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  struct_literal {
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name {
        name: "Main"
      }
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          call {
            function {
              simple_member_access {
                field: "Make"
                object {
                  identifier {
                    name: "TypeLike"
                  }
                }
              }
            }
            argument {
              tuple_literal {
              }
            }
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "x"
                type {
                  expression_pattern {
                    expression {
                      struct_type_literal {
                        fields {
                          name: "a"
                          expression {
                            call {
                              function {
                                simple_member_access {
                                  field: "Make"
                                  object {
                                    identifier {
                                      name: "TypeLike"
                                    }
                                  }
                                }
                              }
                              argument {
                                tuple_literal {
                                }
                              }
                            }
                          }
                        }
                        fields {
                          name: "b"
                          expression {
                            call {
                              function {
                                simple_member_access {
                                  field: "Make"
                                  object {
                                    identifier {
                                      name: "TypeLike"
                                    }
                                  }
                                }
                              }
                              argument {
                                tuple_literal {
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            init {
              struct_literal {
                fields {
                  name: "a"
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
                fields {
                  name: "b"
                  expression {
                    int_literal {
                      value: 2
                    }
                  }
                }
              }
            }
            is_returned: false
          }
        }
        statements {
          return_expression_statement {
            expression {
              operator {
                op: Add
                arguments {
                  simple_member_access {
                    field: "a"
                    object {
                      identifier {
                        name: "x"
                      }
                    }
                  }
                }
                arguments {
                  simple_member_access {
                    field: "b"
                    object {
                      identifier {
                        name: "x"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
