solidity/test/libsolidity/natspecJSON/dev_documenting_nonexistent_param.sol

10 lines
428 B
Solidity

contract test {
/// @dev Multiplies a number by 7 and adds second parameter
/// @param a Documentation for the first parameter
/// @param not_existing Documentation for the second parameter
function mul(uint a, uint second) public returns (uint d) { return a * 7 + second; }
}
// ----
// DocstringParsingError 3881: (20-201): Documented parameter "not_existing" not found in the parameter list of the function.