test-suite/bugs/bug_11722.v
raw| 1 | Require Import Program.Basics Program.Tactics. |
| 2 | Set Universe Polymorphism. |
| 3 | |
| 4 | Inductive paths@{i} (A : Type@{i}) (a : A) : A -> Type@{i} := |
| 5 | idpath : paths A a a. |
| 6 | |
| 7 | Inductive nat := |
| 8 | | O : nat |
| 9 | | S : nat -> nat. |
| 10 | |
| 11 | Axiom cheat : forall {A}, A. |
| 12 | |
| 13 | Program Definition foo@{i} : forall x : nat, paths@{i} nat x x := _. |
| 14 | Next Obligation. |
| 15 | destruct x. |
| 16 | constructor. |
| 17 | apply cheat. |
| 18 | Defined. (* FIXED: Universe unbound error *) |
| 19 | |
| 20 | Check foo@{_}. |