solidity/test/libsolidity/syntaxTests/events/event_selector_syntax.sol
Kamil Śliwak 5375dfff9d Refactor error/event selector tests
- 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
2022-06-14 12:04:19 +02:00

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");
}
}