summaryrefslogtreecommitdiff
path: root/testsuite/tests/letrec/mixing_value_closures_2.ml
blob: eb5fcb7420e92ed8dbd9ab5a5ca186e1c1aa09f2 (plain)
1
2
3
4
5
6
7
8
(* a polymorphic variant of test3.ml; found a real bug once *)
let test =
  let rec x = `A f
  and f = function
    | 0 -> 2
    | n -> match x with `A g -> g 0
  in
  assert (f 1 = 2)