We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f22ad8 commit 7f213fcCopy full SHA for 7f213fc
lambda/translcore.ml
@@ -1098,7 +1098,8 @@ and transl_function0
1098
let arg_mode, kind =
1099
match cases with
1100
| [] ->
1101
- Misc.fatal_error "transl_function0: no cases"
+ (* With Camlp4, a pattern matching might be empty *)
1102
+ Alloc_heap, Pgenval
1103
| {c_lhs=pat} :: other_cases ->
1104
(* All the patterns might not share the same types. We must take the
1105
union of the patterns types *)
0 commit comments