solidity/test/libsolidity/syntaxTests/errors/weird1.sol
2021-02-11 14:18:04 +01:00

8 lines
244 B
Solidity

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