chore(frontends/lean/inductive_cmd): add auxiliary assertion for debugging
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
543fdf840e
commit
231039ad26
1 changed files with 2 additions and 0 deletions
|
@ -304,6 +304,8 @@ struct inductive_cmd_fn {
|
|||
level_param_names d_lvls;
|
||||
std::tie(d_type, d_lvls) = elaborate_inductive_type(d_type);
|
||||
if (!m_first) {
|
||||
lean_assert(first_d_type);
|
||||
lean_assert(first_d_lvls);
|
||||
check_params(d_type, *first_d_type);
|
||||
check_levels(d_lvls, *first_d_lvls);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue