solidity/test/libsolidity/syntaxTests/errors/weird1.sol

8 lines
244 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
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.