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

8 lines
251 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
contract C {
event E(uint);
2021-01-28 11:56:22 +00:00
function() internal pure x = E;
}
// ----
// TypeError 7407: (66-67): Type event E(uint256) is not implicitly convertible to expected type function () pure. Special functions cannot be converted to function types.