solidity/test/libsolidity/syntaxTests/natspec/docstring_variable.sol

15 lines
415 B
Solidity
Raw Normal View History

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;
}
}
// ----
2020-06-22 16:43:57 +00:00
// ParserError 2837: (290-295): Only state variables can have a docstring.