diff --git a/src/frontends/lean/builtin_cmds.cpp b/src/frontends/lean/builtin_cmds.cpp index 676891af92..beb8947d99 100644 --- a/src/frontends/lean/builtin_cmds.cpp +++ b/src/frontends/lean/builtin_cmds.cpp @@ -258,6 +258,8 @@ static void print_recursor_info(parser & p) { bool print_constant(parser & p, char const * kind, declaration const & d) { io_state_stream out = p.regular_stream(); + if (is_protected(p.env(), d.get_name())) + out << "protected "; out << kind << " " << d.get_name(); print_attributes(p, d.get_name()); out << " : " << d.get_type() << "\n";