Adds command line test for structured doc errors.

This commit is contained in:
Erik Kundt 2020-01-30 21:49:32 +01:00
parent 125d9f6648
commit 1d2e1c4f0a
3 changed files with 21 additions and 0 deletions

View File

@ -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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -0,0 +1 @@
1

View File

@ -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);
}