diff options
Diffstat (limited to 'otherlibs/labltk/compiler/intf.ml')
-rw-r--r-- | otherlibs/labltk/compiler/intf.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/otherlibs/labltk/compiler/intf.ml b/otherlibs/labltk/compiler/intf.ml index 87e1eed85..634e0a315 100644 --- a/otherlibs/labltk/compiler/intf.ml +++ b/otherlibs/labltk/compiler/intf.ml @@ -72,7 +72,9 @@ let write_function_type ~w def = replace_args ~u:[] ~l:[] ~o:[] (List.rev tys) in let counter = ref 0 in - List.iter (ls @ os @ us) ~f: + let params = + if os = [] then us @ ls else ls @ os @ us in + List.iter params ~f: begin fun (l, t) -> if l <> "" then w (l ^ ":"); w (ppMLtype t ~counter); |