diff --git a/src/library/tactic/goal.cpp b/src/library/tactic/goal.cpp index 40fedea8f..78154fd56 100644 --- a/src/library/tactic/goal.cpp +++ b/src/library/tactic/goal.cpp @@ -138,10 +138,10 @@ std::pair to_goal(environment const & env, context const & expr b = replacer(e.get_body()); replacer.clear(); if (b && (!d || !inferer.is_proposition(d))) { - hypotheses.emplace_back(n, expr()); bodies.push_back(b); consts.push_back(expr()); } else { + lean_assert(d); hypotheses.emplace_back(n, d); bodies.push_back(expr()); consts.push_back(mk_constant(n, d));