k
else if Patterns.are_empty t then begin
(match t with
- | _::_::_ -> warning "Ambiguous patterns"
+ | _::_::_ ->
+ (* optimization possible here: throw away all except one of the rules
+ * which lead to ambiguity *)
+ warning "Ambiguous patterns"
| _ -> ());
return_closure success_k
end else