solidity/test/libsolidity/syntaxTests/errors/weird1.sol
2022-04-01 23:41:18 -05:00

8 lines
248 B
Solidity

error E();
contract C {
function() internal pure x = E;
}
// ----
// TypeError 7407: (58-59='E'): Type function () pure is not implicitly convertible to expected type function () pure. Special functions can not be converted to function types.