solidity/test/libsolidity/syntaxTests/conversion/function_cast_value_set.sol

8 lines
248 B
Solidity

contract C {
function f() public payable {
function() external payable x = this.f{value: 7};
}
}
// ----
// TypeError 9574: (46-94): Type function () payable external is not implicitly convertible to expected type function () payable external.