aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_5315.v
blob: 7ecd511651dca62550d008391fda1ff84c0f743c (plain)
1
2
3
4
5
6
7
8
9
10
Require Import Recdef.

Function dumb_works (a:nat) {struct a} :=
  match (fun x => x) a with O => O | S n' => dumb_works n' end.

Function dumb_nope (a:nat) {struct a} :=
  match (id (fun x => x)) a with O => O | S n' => dumb_nope n' end.

(* This check is just present to ensure Function worked well *)
Check R_dumb_nope_complete.