solidity/test/libsolidity/syntaxTests/conversion/explicit_conversion_event_to_bytes4.sol

10 lines
266 B
Solidity
Raw Normal View History

contract Test {
event MyCustomEvent(uint256);
function test() public returns(bytes4) {
return bytes4(MyCustomEvent);
}
}
// ----
// TypeError 9640: (111-132): Explicit type conversion not allowed from "event MyCustomEvent(uint256)" to "bytes4".