compilation_unit { package_statement { package_name: "ExplorerTest" } is_api: true declarations { interface { name { name: "Iface" } members { let { pattern { generic_binding { name: "T" type { type_type_literal { } } } } } } } } declarations { function { name { name: "F" } deduced_parameters { name: "T" type { where { base { identifier { name: "Iface" } } clauses { equals { lhs { designator { name: "T" } } rhs { int_type_literal { } } } } } } } param_pattern { fields { binding_pattern { name: "x" type { expression_pattern { expression { identifier { name: "T" } } } } } } } return_term { kind: Omitted } body { } } } declarations { class_declaration { name { name: "Class" } members { impl { kind: InternalImpl impl_type { identifier { name: "Self" } } interface { where { base { identifier { name: "Iface" } } clauses { rewrite { member_name: "T" replacement { int_type_literal { } } } } } } } } } } declarations { function { name { name: "G" } deduced_parameters { name: "U" type { where { base { type_type_literal { } } clauses { equals { lhs { designator { name: "Self" } } rhs { int_type_literal { } } } } } } } deduced_parameters { name: "T" type { where { base { identifier { name: "Iface" } } clauses { rewrite { member_name: "T" replacement { identifier { name: "U" } } } } } } } param_pattern { fields { binding_pattern { name: "x" type { expression_pattern { expression { identifier { name: "T" } } } } } } fields { binding_pattern { name: "y" type { expression_pattern { expression { identifier { name: "U" } } } } } } } return_term { kind: Omitted } body { statements { expression_statement { expression { call { function { identifier { name: "F" } } argument { tuple_literal { fields { identifier { name: "x" } } } } } } } } } } } declarations { function { name { name: "H" } deduced_parameters { name: "V" type { where { base { type_type_literal { } } clauses { equals { lhs { designator { name: "Self" } } rhs { int_type_literal { } } } } } } } deduced_parameters { name: "W" type { where { base { identifier { name: "Iface" } } clauses { equals { lhs { designator { name: "T" } } rhs { identifier { name: "V" } } } } } } } param_pattern { fields { binding_pattern { name: "x" type { expression_pattern { expression { identifier { name: "W" } } } } } } fields { binding_pattern { name: "y" type { expression_pattern { expression { identifier { name: "V" } } } } } } } return_term { kind: Omitted } body { statements { expression_statement { expression { call { function { identifier { name: "F" } } argument { tuple_literal { fields { identifier { name: "x" } } } } } } } } } } } declarations { function { name { name: "Main" } param_pattern { } return_term { kind: Expression type { int_type_literal { } } } body { statements { variable_definition { pattern { binding_pattern { name: "x" type { expression_pattern { expression { identifier { name: "Class" } } } } } } init { struct_literal { } } is_returned: false } } statements { expression_statement { expression { call { function { identifier { name: "G" } } argument { tuple_literal { fields { identifier { name: "x" } } fields { int_literal { value: 0 } } } } } } } } statements { expression_statement { expression { call { function { identifier { name: "H" } } argument { tuple_literal { fields { identifier { name: "x" } } fields { int_literal { value: 0 } } } } } } } } statements { return_expression_statement { expression { int_literal { value: 0 } } } } } } } }