chore: rename projection function major field to self

This is useful for projection function for classes + named arguments.
This commit is contained in:
Leonardo de Moura 2019-12-12 08:55:55 -08:00
parent d18e8d95b9
commit a124461dca

View file

@ -71,7 +71,7 @@ environment mk_projections(environment const & env, name const & n, buffer<name>
}
expr C_A = mk_app(mk_constant(n, lvls), params);
binder_info c_bi = inst_implicit ? mk_inst_implicit_binder_info() : mk_binder_info();
expr c = lctx.mk_local_decl(ngen, name("c"), C_A, c_bi);
expr c = lctx.mk_local_decl(ngen, name("self"), C_A, c_bi);
buffer<expr> cnstr_type_args; // arguments that are not parameters
expr it = cnstr_type;
while (is_pi(it)) {