aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest/typeof.v
blob: 8ad81a34455050d263328228156fc4b1a8874b69 (plain)
1
2
3
4
5
6
7
8
9
Require Import ssreflect.
Ltac mycut x :=
  let tx := type of x in
  cut tx.

Lemma test : True.
Proof.
by mycut I=> [ x | ]; [ exact x | exact I ].
Qed.