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

8 lines
243 B
Solidity
Raw Normal View History

2020-05-12 09:51:13 +00:00
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.