aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorherbelin2011-11-21 11:41:05 +0000
committerherbelin2011-11-21 11:41:05 +0000
commit8d496109094dc593fe2d3926885ac3eba0a3c9ac (patch)
tree654d26faeffdaf91e9a5f8e9ff01e59fce6782db /kernel
parentdf33bfa6813f2b078a45ee55d5fd4aeb3eab0155 (diff)
Changed the way to detect if an "as" patterns is expanded or not. The
main criterion is to look at whether the alias to the term to match is dependent in the return predicate or not. Since the exact return predicate is often found late, the detection is done after the subproblem is fully compiled, when a maximum amount of (local) information on typing is known. Eventually, we should go to a model where all possible partial expansions of an alias are usable at typing time. Indeed the current heuristic (like the previous one) is not fully safe since it might decide not to expand an alias in a branch whose type does not depend of the alias but the typing of the branch internally needs the expansion (as e.g. in "fun (H:forall n, n=0->Prop) n => match n with 0 as x => H x eq_refl | _ => True end"). git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14701 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions