diff --git a/test/cmdlineTests/structured_documentation_source_location/err b/test/cmdlineTests/structured_documentation_source_location/err new file mode 100644 index 000000000..1081fdaa8 --- /dev/null +++ b/test/cmdlineTests/structured_documentation_source_location/err @@ -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 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/test/cmdlineTests/structured_documentation_source_location/exit b/test/cmdlineTests/structured_documentation_source_location/exit new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/test/cmdlineTests/structured_documentation_source_location/exit @@ -0,0 +1 @@ +1 diff --git a/test/cmdlineTests/structured_documentation_source_location/input.sol b/test/cmdlineTests/structured_documentation_source_location/input.sol new file mode 100644 index 000000000..ceec13547 --- /dev/null +++ b/test/cmdlineTests/structured_documentation_source_location/input.sol @@ -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); +} \ No newline at end of file