Description
Say we have an ArrayExtra
module, and define a function inside like the following:
@ocaml.doc("Hello doc")
let usefulFunction: unit => int = () => 1
Typing ArrayExtra.u
will show the following:
If I remove the type annotation, or the doc, it works:
While I'm aware the syntax for doc will change soon and not use @ocaml.doc
anymore, and while I'm also aware that type annotations are optional in many cases, I thought it could be interesting to understand why the function doesn't show up 😕
Edit: My bad, it seems it works for some other functions. So when a function with type annotation + doc appears in the suggestions list, it'll always appear, but some functions don't appear for any reason, and the only to force them to appear is to drop the types for instance.
Metadata
Metadata
Assignees
Labels
No labels