solidity/test/libsolidity/syntaxTests/events/event_selector_access_interface.sol

12 lines
260 B
Solidity

interface I {
event E();
}
contract C {
function f() external pure returns (bytes32) {
return I.E.selector;
}
}
// ----
// TypeError 9582: (111-114): Member "E" not found or not visible after argument-dependent lookup in type(contract I).