test-suite/bugs/bug_4771.v
raw| 1 | (* The following code used to trigger an anomaly in functor substitutions *) |
| 2 | |
| 3 | Module Type Foo. |
| 4 | |
| 5 | Parameter Inline t : nat. |
| 6 | |
| 7 | End Foo. |
| 8 | |
| 9 | Module F(X : Foo). |
| 10 | |
| 11 | Tactic Notation "foo" ref(x) := idtac. |
| 12 | |
| 13 | Ltac g := foo X.t. |
| 14 | |
| 15 | End F. |
| 16 | |
| 17 | Module N. |
| 18 | Definition t := 0 + 0. |
| 19 | End N. |
| 20 | |
| 21 | Module K := F(N). |