test-suite/bugs/bug_12755.v
raw| 1 | Section A. |
| 2 | Context {a : nat}. |
| 3 | Section B. |
| 4 | Context {b : nat}. |
| 5 | Definition foo (eq1 : a = a) (eq2 : b = b) (c : nat) : c = c := eq_refl. |
| 6 | Global Arguments foo _ {_} {d} : rename. |
| 7 | End B. |
| 8 | End A. |
| 9 | Arguments foo. (* was raising an anomaly *) |
| 10 | Check foo _ (d:=0). (* was wrongly binding d to eq2 *) |
| 11 | Fail Check foo (eq1 := 3) (eq_refl 2) (eq_refl 3) 4. (* was wrongly binding eq1 to b *) |