Skip to content

Commit

Permalink
Add test for bug coq#18194
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Leray committed Oct 23, 2023
1 parent 2eb92b2 commit 58e4f62
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test-suite/bugs/bug_18194.v
@@ -0,0 +1,19 @@
Require Import Coq.Program.Tactics.

Program Definition a := Eval cbv zeta in (fun (a : True) => (?[A] : nat),
let r :=
let b := I in match tt with tt => b end
in
?A@{a := r},
fun (a : True) => (eq_refl : ?A = _)).

Next Obligation.
destruct a; exact 0.
Defined.
(* This used to fail with the message:
File "test-suite/bugs/bug_18194.v", line 12, characters 0-8:
Error:
Unbound reference: In environment
anonymous' : unit
The reference 3 is free.
*)

0 comments on commit 58e4f62

Please sign in to comment.