summaryrefslogtreecommitdiff
path: root/test-suite/success/if.v
blob: 9fde95e80d12bd113cf3cd010c5980692830d564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(* The synthesis of the elimination predicate may fail if algebric *)
(* universes are not cautiously treated *)

Check (fun b : bool => if b then Type else nat).

(* Check correct use of if-then-else predicate annotation (cf bug 690) *)

Check fun b : bool =>
 if b as b0 return (if b0 then b0 = true else b0 = false)
 then refl_equal true
 else refl_equal false.