solidity/test/libsolidity/syntaxTests/natspec/invalid/inherit_doc_events.sol
2022-04-01 23:41:18 -05:00

18 lines
476 B
Solidity

contract ERC20 {
/// @notice This event is emitted when a transfer occurs.
/// @param from The source account.
/// @param to The destination account.
/// @param amount The amount.
/// @dev A test case!
event Transfer(address indexed from, address indexed to, uint amount);
}
contract A is ERC20 {
/// @inheritdoc ERC20
event Transfer();
}
// ----
// DocstringParsingError 6546: (305-326='/// @inheritdoc ERC20'): Documentation tag @inheritdoc not valid for events.