compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    class_declaration {
      name: "Point"
      members {
        variable {
          binding {
            name: "x"
            type {
              expression_pattern {
                expression {
                  identifier {
                    name: "T"
                  }
                }
              }
            }
          }
        }
      }
      members {
        variable {
          binding {
            name: "y"
            type {
              expression_pattern {
                expression {
                  identifier {
                    name: "T"
                  }
                }
              }
            }
          }
        }
      }
      type_params {
        fields {
          generic_binding {
            name: "T"
            type {
              type_type_literal {
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "GetX"
      deduced_parameters {
        name: "T"
        type {
          type_type_literal {
          }
        }
      }
      param_pattern {
        fields {
          binding_pattern {
            name: "pt"
            type {
              expression_pattern {
                expression {
                  call {
                    function {
                      identifier {
                        name: "Point"
                      }
                    }
                    argument {
                      tuple_literal {
                        fields {
                          identifier {
                            name: "T"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      return_term {
        kind: Expression
        type {
          identifier {
            name: "T"
          }
        }
      }
      body {
        statements {
          return_expression_statement {
            expression {
              simple_member_access {
                field: "x"
                object {
                  identifier {
                    name: "pt"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "GetY"
      param_pattern {
        fields {
          generic_binding {
            name: "T"
            type {
              type_type_literal {
              }
            }
          }
        }
        fields {
          binding_pattern {
            name: "pt"
            type {
              expression_pattern {
                expression {
                  call {
                    function {
                      identifier {
                        name: "Point"
                      }
                    }
                    argument {
                      tuple_literal {
                        fields {
                          identifier {
                            name: "T"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      return_term {
        kind: Expression
        type {
          identifier {
            name: "T"
          }
        }
      }
      body {
        statements {
          return_expression_statement {
            expression {
              simple_member_access {
                field: "y"
                object {
                  identifier {
                    name: "pt"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name: "Main"
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "p"
                type {
                  expression_pattern {
                    expression {
                      call {
                        function {
                          identifier {
                            name: "Point"
                          }
                        }
                        argument {
                          tuple_literal {
                            fields {
                              int_type_literal {
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            init {
              struct_literal {
                fields {
                  name: "x"
                  expression {
                    int_literal {
                      value: 1
                    }
                  }
                }
                fields {
                  name: "y"
                  expression {
                    int_literal {
                      value: 2
                    }
                  }
                }
              }
            }
            is_returned: false
          }
        }
        statements {
          return_expression_statement {
            expression {
              operator {
                op: Add
                arguments {
                  call {
                    function {
                      identifier {
                        name: "GetX"
                      }
                    }
                    argument {
                      tuple_literal {
                        fields {
                          identifier {
                            name: "p"
                          }
                        }
                      }
                    }
                  }
                }
                arguments {
                  call {
                    function {
                      identifier {
                        name: "GetY"
                      }
                    }
                    argument {
                      tuple_literal {
                        fields {
                          int_type_literal {
                          }
                        }
                        fields {
                          struct_literal {
                            fields {
                              name: "x"
                              expression {
                                int_literal {
                                  value: 3
                                }
                              }
                            }
                            fields {
                              name: "y"
                              expression {
                                int_literal {
                                  value: 4
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
