odoc
odoc copied to clipboard
odoc cannot handle alerts for type aliases
odoc seems to have trouble handling deprecation alerts attached to type aliases, for example this one:
type int2 = int [@@ocaml.alert deprecated "Just use int"]
Here's odoc's complaint:
File "src/Test.mli", line 1, characters 16-57:
Warning: Alert deprecated not expected here.
However, the OCaml compiler seems to accept and handle such an alert perfectly.
Thanks for reporting this! It does indeed look like our issue. I'll take a look and see what's required to fix this.
I encountered this same issue