mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
69 lines
1.8 KiB
Solidity
69 lines
1.8 KiB
Solidity
|
library L {
|
||
|
/// @notice This event is defined in Library L
|
||
|
/// @dev This should not appear in Contract C dev doc
|
||
|
event SameSignatureEvent(uint16);
|
||
|
/// @notice This event is defined in Library L
|
||
|
/// @dev This should appear in Contract C dev doc
|
||
|
event LibraryEvent(uint32);
|
||
|
}
|
||
|
contract C {
|
||
|
/// @notice This event is defined in Contract C
|
||
|
/// @dev This should appear in Contract C dev doc
|
||
|
event SameSignatureEvent(uint16);
|
||
|
/// @notice This event is defined in Contract C
|
||
|
/// @dev This should appear in contract C dev doc
|
||
|
event ContractEvent(uint32);
|
||
|
function f() public {
|
||
|
emit L.SameSignatureEvent(0);
|
||
|
emit SameSignatureEvent(1);
|
||
|
emit L.LibraryEvent(2);
|
||
|
emit ContractEvent(3);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// ----
|
||
|
// :C devdoc
|
||
|
// {
|
||
|
// "events":
|
||
|
// {
|
||
|
// "ContractEvent(uint32)":
|
||
|
// {
|
||
|
// "details": "This should appear in contract C dev doc"
|
||
|
// },
|
||
|
// "LibraryEvent(uint32)":
|
||
|
// {
|
||
|
// "details": "This should appear in Contract C dev doc"
|
||
|
// },
|
||
|
// "SameSignatureEvent(uint16)":
|
||
|
// {
|
||
|
// "details": "This should appear in Contract C dev doc"
|
||
|
// }
|
||
|
// },
|
||
|
// "kind": "dev",
|
||
|
// "methods": {},
|
||
|
// "version": 1
|
||
|
// }
|
||
|
//
|
||
|
// :C userdoc
|
||
|
// {
|
||
|
// "events":
|
||
|
// {
|
||
|
// "ContractEvent(uint32)":
|
||
|
// {
|
||
|
// "notice": "This event is defined in Contract C"
|
||
|
// },
|
||
|
// "LibraryEvent(uint32)":
|
||
|
// {
|
||
|
// "notice": "This event is defined in Library L"
|
||
|
// },
|
||
|
// "SameSignatureEvent(uint16)":
|
||
|
// {
|
||
|
// "notice": "This event is defined in Contract C"
|
||
|
// }
|
||
|
// },
|
||
|
// "kind": "user",
|
||
|
// "methods": {},
|
||
|
// "version": 1
|
||
|
// }
|