aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-08-31 20:53:45 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2015-11-10 16:40:05 +0100
commit07620386b3c1b535ee7e43306a6345f015a318f0 (patch)
tree27812862219355ccc1283c8c3315c8b03bbc4675 /test-suite/bugs
parent575fdab5df7c861692b19c62c2004c339c8621df (diff)
Fixing #1225: we now skip the canonically built binding contexts of
the return clause and of the branches in a "match", computing them automatically when using the "at" clause of pattern, destruct, ... In principle, this is a source of incompatibilities in the numbering, since the internal binders of a "match" are now skipped. We shall deal with that later on.
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/1225.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/1225.v b/test-suite/bugs/closed/1225.v
new file mode 100644
index 000000000..a7799b35f
--- /dev/null
+++ b/test-suite/bugs/closed/1225.v
@@ -0,0 +1,12 @@
+(* Taking automatically into account internal dependencies of a |match] *)
+
+Let a n := @exist nat _ _ (refl_equal (n + 1)).
+Goal let (n, _) := a 3 in n = 4.
+pattern 3 at 1.
+Abort.
+
+Goal match refl_equal 0 in _ = n return n = 0 with
+ | refl_equal => refl_equal 0
+ end = refl_equal 0.
+pattern 0 at 1 2 3 4 5 6.
+Abort.