Closed
Description
- ReScript Version: 11.0.1
- Playground link: https://rescript-lang.org/try?version=v11.0.1&code=PQKhAIEFxYCgC2B7AJgVwDYFNwCcsDGU4AXOAN7gAuAngA45XgC+4AvBXONfY3M3DigIAIRjwAhgDsU4MWUq0G1Fu07clfZkA
The doc comment syntax (/** */
) is not working when attached to the recursive modules starting with and
:
/** A */
module rec A : { type t } = {
type t
}
/** B */ //<- offending line
and B : { type t } = {
type t
}
It produces the following error:
[E] Line 6, column 0:
Did you forget to attach `res.doc` to an item?
Standalone attributes start with `@@` like: `@@res.doc`
I think there is a bug in the syntax side since the following code is working correctly:
/** A */
module rec A : { type t } = {
type t
}
@res.doc("B")
and B : { type t } = {
type t
}