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

10 lines
239 B
Solidity
Raw Normal View History

contract C {
event MyCustomEvent(uint);
function f() public {
bytes4 a = MyCustomEvent;
}
}
// ----
// TypeError 9574: (78-102): Type event MyCustomEvent(uint256) is not implicitly convertible to expected type bytes4.