mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
5375dfff9d
- Remove redundant semantic tests for error selector - Consolidate semanticTests/error/ and semanticTests/errors/ dirs - Make "selector syntax test" for errors and event an actual test for syntax rather than a copy of the same semantic test
21 lines
447 B
Solidity
21 lines
447 B
Solidity
library L {
|
|
event E(bytes32, bool, bytes indexed);
|
|
}
|
|
|
|
contract B {
|
|
event E(bytes32, bool, bytes indexed);
|
|
}
|
|
|
|
contract C is B {
|
|
bytes32 public librarySelector = L.E.selector;
|
|
bytes32 inheritedSelector = E.selector;
|
|
|
|
function f() public {
|
|
assert(librarySelector == L.E.selector);
|
|
assert(E.selector == B.E.selector);
|
|
|
|
emit E(E.selector, true, "123");
|
|
emit L.E((B.E.selector), true, "123");
|
|
}
|
|
}
|