summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/1891.v
blob: 5024a5bc9721f4b3ac0889adda9a3742d69eb1f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(* Check evar-evar unification *)
 Inductive T (A: Set): Set := mkT: unit -> T A.

  Definition f (A: Set) (l: T A): unit := tt.

  Arguments f [A].

  Lemma L (x: T unit): (unit -> T unit) -> unit.
  Proof.
    refine (match x return _ with mkT _ n => fun g => f (g _) end).
    trivial.
  Qed.