mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds command line test for structured doc errors.
This commit is contained in:
parent
125d9f6648
commit
1d2e1c4f0a
@ -0,0 +1,11 @@
|
||||
Error: Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
--> structured_documentation_source_location/input.sol:3:5:
|
||||
|
|
||||
3 | /// @param id Some identifier
|
||||
| ^ (Relevant source part starts here and spans across multiple lines).
|
||||
|
||||
Error: Documentation tag "@return No value returned" does not contain the name of its return parameter.
|
||||
--> structured_documentation_source_location/input.sol:7:5:
|
||||
|
|
||||
7 | /// @return No value returned
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,9 @@
|
||||
pragma solidity >= 0.0;
|
||||
abstract contract C {
|
||||
/// @param id Some identifier
|
||||
/// @return No value returned
|
||||
function vote(uint id) public virtual returns (uint value);
|
||||
|
||||
/// @return No value returned
|
||||
function unvote(uint id) public virtual returns (uint value);
|
||||
}
|
Loading…
Reference in New Issue
Block a user