Skip to content

Commit fcbc016

Browse files
committed
cleanup
1 parent 8dd7777 commit fcbc016

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

thorin/fe/parser.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -519,17 +519,18 @@ std::unique_ptr<SigmaBndr> Parser::parse_sigma_bndr(Tracker track, Sym sym) {
519519
parse_list("sigma binder", Tok::Tag::D_bracket_l, [&]() {
520520
bndrs.emplace_back(parse_bndr("element of a sigma binder"));
521521
const auto& bndr = bndrs.back();
522+
auto type = bndr->type(world());
522523
Infer* infer = nullptr;
523524
const Def* field = bot;
524525
if (!bndr->is_anonymous()) {
525526
field = bndr->sym().str();
526-
infer = world().nom_infer(bndr->type(world()), bndr->sym());
527+
infer = world().nom_infer(type, bndr->sym());
527528
scopes_.bind(bndr->sym(), infer);
528529
}
529530

530531
infers.emplace_back(infer);
531532
fields.emplace_back(field);
532-
ops.emplace_back(bndr->type(world()));
533+
ops.emplace_back(type);
533534
});
534535
scopes_.pop();
535536

0 commit comments

Comments
 (0)