solidity/test/libsolidity/syntaxTests/natspec/docstring_variable.sol
Alexander Arlt cb5bfc7436 Update natspec comments on state variables.
- changing some warnings to errors
2020-05-26 11:18:24 -05:00

15 lines
410 B
Solidity

contract C {
function f() public pure returns (uint) {
/// @title example of title
/// @author example of author
/// @notice example of notice
/// @dev example of dev
/// @param example of param
/// @return example of return
uint state = 42;
return state;
}
}
// ----
// ParserError: (290-295): Only state variables can have a docstring.