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:
parent
f2e878dbe7
commit
1d6ff5f761
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue