Commits

Calascibetta Romain committed 2f8b018

Fix print of link type for declaration (just after keyword « declare »)

Comments (0)

Files changed (1)

       else "") type_arguments (Array.length type_arguments - 1)
   in let string_link_type = match link_type with
     | None                  -> ""
-    | Some a                -> " " ^ (string_of_link_type a)
-  in "declare " ^ string_type_return ^ " @" ^ id
-  ^ "(" ^ string_type_arguments ^ ")" ^ string_link_type
+    | Some a                -> (string_of_link_type a) ^ " "
+  in "declare " ^ string_link_type ^ string_type_return ^ " @" ^ id
+  ^ "(" ^ string_type_arguments ^ ")"
 
 let string_of_definition
   ((type_return, id, type_arguments), instr_list) =