aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_8224.v
blob: 42dd47d48c50e307b954a969a5e0355ea9ae3bac (plain)
1
2
3
4
5
6
7
8
9
(* Checking that terms are evar-free before being grounded *)

(* This used to raise an anomaly in 8.9 beta *)

Fail Fixpoint restrict f n :=
  match n with
  | O => nil
  | S n => cons (f n) (restrict f n)
  end.