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

8 lines
252 B
Solidity

contract C {
event E(uint);
function() internal pure x = E;
}
// ----
// TypeError 7407: (66-67): Type event E(uint256) is not implicitly convertible to expected type function () pure. Special functions can not be converted to function types.