Reports doctring error on named return mismatch.

This commit is contained in:
Erik Kundt
2019-12-04 15:38:11 +01:00
committed by chriseth
parent bd26da8d37
commit e5cb0fe839
5 changed files with 48 additions and 2 deletions
@@ -0,0 +1,5 @@
abstract contract C {
/// @return value The value returned by this function.
function vote() public virtual returns (uint value);
}
// ----
@@ -0,0 +1,7 @@
abstract contract C {
/// @param id Some identifier
/// @return No value returned
function vote(uint id) public virtual returns (uint value);
}
// ----
// DocstringParsingError: Doc tag "@return No value returned" does not contain the name of its return parameter.
@@ -0,0 +1,7 @@
abstract contract C {
/// @param id Some identifier
/// @return No value returned
function vote(uint id) public virtual returns (uint value);
}
// ----
// DocstringParsingError: Doc tag "@return No value returned" does not contain the name of its return parameter.