raise (DisambiguateTypes.Invalid_choice
(lazy (loc, "Syntax error: the left hand side of a "^
"branch pattern must be \"_\"")))
- ) branches
+ ) branches in
+ let indtype_ref =
+ NReference.reference_of_string "cic:/fake_indty.ind(0,0,0)"
in
- (*
- NCic.MutCase (ref, cic_outtype, cic_term,
- (List.map do_branch branches))
- *) ignore branches; assert false (* patterns not implemented yet *)
+ NCic.Match (indtype_ref, cic_outtype, cic_term,
+ (List.map do_branch branches))
else
let indtype_ref =
match indty_ident with
None, "NCicUnification uncertain: " ^ Lazy.force msg
| DisambiguateChoices.Choice_not_found msg ->
None, ("Disambiguation choice not found: " ^ Lazy.force msg)
+ | DisambiguateTypes.Invalid_choice msg ->
+ None, ("Invalid choice: " ^ snd (Lazy.force msg))
| MatitaEngine.EnrichedWithStatus (exn,_) ->
None, snd(to_string exn)
| NTacStatus.Error (msg,None) ->