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