diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-04-27 15:09:04 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2014-04-28 09:40:46 +0200 |
commit | 5eb53b5bc8d765ed75e965f43f1084e18efc8790 (patch) | |
tree | 31c87e5f8c9f6cff5f2277912240a2a2f565bc90 /kernel/term.ml | |
parent | 6541e32be7018104c47ccad75ff41ffc750ff944 (diff) |
Adding a field ci_cstr_nargs to case_info and mind_consnrealargs to
one_inductive_body so that when eta-expanding at "match" printing time
we know if a let is part of the expected signature or part of the
body.
This is an easy fix for bugs like #3293. Another fix could be to
enforce, as an invariant, or better syntactically, that
"match"/"Case"'s have the body of their branches expanded.
Diffstat (limited to 'kernel/term.ml')
-rw-r--r-- | kernel/term.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/term.ml b/kernel/term.ml index 44a10aa35..24fe6d962 100644 --- a/kernel/term.ml +++ b/kernel/term.ml @@ -47,6 +47,7 @@ type case_info = Constr.case_info = { ci_ind : inductive; ci_npar : int; ci_cstr_ndecls : int array; + ci_cstr_nargs : int array; ci_pp_info : case_printing } |