Merge pull request #6605 from ethereum/natspec-colon-fix

Fix Natspec parser error
This commit is contained in:
chriseth
2019-05-13 10:19:47 +02:00
committed by GitHub
3 changed files with 33 additions and 3 deletions
@@ -0,0 +1,11 @@
contract C {
/**
* @dev a function
* @param _from 5 from address
* @param _5to : to address
* @param value: token transfer amount
* @param value? token transfer amount
*/
function f(address _from, address _5to, uint256 value) internal {
}
}
@@ -0,0 +1,11 @@
contract C {
/**
* @param 5value a value parameter
* @param _ a value parameter
*/
function f(uint256 _5value, uint256 _value, uint256 value) internal {
}
}
// ----
// DocstringParsingError: Documented parameter "" not found in the parameter list of the function.
// DocstringParsingError: Documented parameter "_" not found in the parameter list of the function.