I think it is sensible to disallow nested match in val rec
, but I couldn't find such words in the definition. Am I missing something?
In HaMLet S, the following code results in a runtime error.
val rec (f with () = print (g "X")) = fn x => x
and (g with () = print (f "Y")) = fn y => y;