Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/frontends/lean/user_notation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static environment add_user_notation(environment const & env, name const & d, un
auto pos = p.pos();
expr e = p.parse_expr(get_max_prec());
data.push(p.new_ast("expr", pos).push(p.get_id(e)).m_id);
if (!closed(e) || has_local(e)) {
if (!closed(e)) {
throw elaborator_exception(e, "invalid argument to user-defined notation, must be closed term");
}
parser = mk_app(parser, e);
Expand Down