feat(library/definitional/projection): throw exception if unsupported case occurs

The user can workaround it by using trust-level 0 (i.e., no option -t num or -T)
This commit is contained in:
Leonardo de Moura 2015-01-20 17:40:22 -08:00
parent f2e878dbe7
commit 1d6ff5f761

View file

@ -142,7 +142,8 @@ public:
return mk_pair(instantiate_rev(t, I_args.size(), I_args.data()), cs);
} else {
// TODO(Leo)
lean_unreachable();
throw_kernel_exception(env, sstream() << "projection macros do not support arbitrary terms "
<< "containing metavariables yet (solution: use trust-level 0)", m);
}
}