mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reports doctring error on named return mismatch.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user