diff options
| author | Pierre-Marie Pédrot | 2019-10-22 10:55:56 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2019-10-22 10:55:56 +0200 |
| commit | 487f23187413e6cf6ee117d798a9057d0008aa6a (patch) | |
| tree | 3808cc96f0884475ff089820587c69915f589be1 /test-suite | |
| parent | 23a825c1b02b50991f0bed9e3f71197a46c639a5 (diff) | |
| parent | e9497e5131f13cdea86aff8ae697415d400538fd (diff) | |
Merge PR #10899: Fixes #10894 regression: uconstr was not anymore typed in the Ltac-substituted environment
Reviewed-by: ejgallego
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_10894.v | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10894.v b/test-suite/bugs/closed/bug_10894.v new file mode 100644 index 0000000000..b8c9367951 --- /dev/null +++ b/test-suite/bugs/closed/bug_10894.v @@ -0,0 +1,12 @@ +(* Check that uconstrs are interpreted in the ltac-substituted environment *) +(* Was a regression introduced in 4dab4fc (#7288) *) + +Tactic Notation "bind" hyp(x) "in" uconstr(f) "as" ident(h) := + set (h := fun x => f). + +Fact test : nat -> nat. +Proof. + intros n. + bind n in (n*n) as f. + assert (f 0 = 0) by reflexivity. +Abort. |
