compilation_unit {
  package_statement {
    package_name: "ExplorerTest"
  }
  is_api: true
  declarations {
    namespace {
      name {
        name: "N"
      }
    }
  }
  declarations {
    mixin {
      name {
        qualifiers: "N"
        name: "Mixin"
      }
      self {
        name: "Self"
        type {
          type_type_literal {
          }
        }
      }
    }
  }
  declarations {
    class_declaration {
      name {
        qualifiers: "N"
        name: "BaseClass"
      }
      members {
        mix {
          mixin {
            identifier {
              name: "Mixin"
            }
          }
        }
      }
    }
  }
  declarations {
    class_declaration {
      name {
        qualifiers: "N"
        name: "DerivedClass"
      }
    }
  }
  declarations {
    namespace {
      name {
        qualifiers: "N"
        name: "Inner"
      }
    }
  }
  declarations {
    alias {
      name {
        qualifiers: "N"
        qualifiers: "Inner"
        name: "InnerClass"
      }
      target {
        identifier {
          name: "DerivedClass"
        }
      }
    }
  }
  declarations {
    choice {
      name {
        qualifiers: "N"
        name: "Choice"
      }
      alternatives {
        name: "A"
        signature {
        }
      }
      alternatives {
        name: "B"
        signature {
        }
      }
      alternatives {
        name: "C"
        signature {
          fields {
            identifier {
              name: "DerivedClass"
            }
          }
        }
      }
    }
  }
  declarations {
    interface {
      name {
        qualifiers: "N"
        name: "Iface"
      }
      members {
        function {
          name {
            name: "F"
          }
          param_pattern {
          }
          return_term {
            kind: Expression
            type {
              operator {
                op: Ptr
                arguments {
                  identifier {
                    name: "DerivedClass"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    constraint {
      name {
        qualifiers: "N"
        name: "Constraint"
      }
      members {
        interface_extend {
          base {
            identifier {
              name: "Iface"
            }
          }
        }
      }
    }
  }
  declarations {
    variable {
      binding {
        name: "v"
        type {
          expression_pattern {
            expression {
              simple_member_access {
                field: "DerivedClass"
                object {
                  identifier {
                    name: "N"
                  }
                }
              }
            }
          }
        }
      }
      initializer {
        struct_literal {
          fields {
            name: "base"
            expression {
              struct_literal {
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name {
        qualifiers: "N"
        name: "F"
      }
      deduced_parameters {
        name: "T"
        type {
          identifier {
            name: "Constraint"
          }
        }
      }
      param_pattern {
      }
      return_term {
        kind: Omitted
      }
      body {
        statements {
          variable_definition {
            pattern {
              binding_pattern {
                name: "v"
                type {
                  expression_pattern {
                    expression {
                      simple_member_access {
                        field: "InnerClass"
                        object {
                          identifier {
                            name: "Inner"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
            init {
              struct_literal {
                fields {
                  name: "base"
                  expression {
                    struct_literal {
                    }
                  }
                }
              }
            }
            is_returned: false
          }
        }
      }
    }
  }
  declarations {
    impl {
      kind: InternalImpl
      impl_type {
        int_type_literal {
        }
      }
      interface {
        simple_member_access {
          field: "Constraint"
          object {
            identifier {
              name: "N"
            }
          }
        }
      }
      members {
        function {
          name {
            name: "F"
          }
          param_pattern {
          }
          return_term {
            kind: Expression
            type {
              operator {
                op: Ptr
                arguments {
                  simple_member_access {
                    field: "DerivedClass"
                    object {
                      identifier {
                        name: "N"
                      }
                    }
                  }
                }
              }
            }
          }
          body {
            statements {
              return_expression_statement {
                expression {
                  operator {
                    op: AddressOf
                    arguments {
                      identifier {
                        name: "v"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  declarations {
    function {
      name {
        name: "Main"
      }
      param_pattern {
      }
      return_term {
        kind: Expression
        type {
          int_type_literal {
          }
        }
      }
      body {
        statements {
          return_expression_statement {
            expression {
              int_literal {
                value: 0
              }
            }
          }
        }
      }
    }
  }
}
