-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:VMAssigned to OTP team VMAssigned to OTP team VM
Description
Describe the bug
In the EEP 59 proposal, it is stated that:
Listing multiple
-docattributes with string values for the same function should warn or error accordingly, unless the documentation is being set to hidden. For example, this is valid:
-doc "Example".
-doc hidden.
example() -> ok.
This does not seem to be the case though.
To Reproduce
Have the module:
-module(test).
-export([example/0]).
-doc "Example".
-doc hidden.
example() ->
ok.
Compile it with:
$ erlc test.erl
test.erl:8:2: redefining documentation attribute (doc) previously set at line 5
% 8| -doc hidden.
% | ^
Expected behavior
No error is produced.
Affected versions
OTP 27.3
Metadata
Metadata
Assignees
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:VMAssigned to OTP team VMAssigned to OTP team VM