solidity/test/libsolidity/syntaxTests/conversion/function_cast_value_set.sol
2020-05-12 15:21:13 +05:30

8 lines
243 B
Solidity

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