Test for function with value setting

This commit is contained in:
Harikrishnan Mulackal 2020-05-12 15:21:13 +05:30
parent b9c63e0032
commit c29d76f8f2

View File

@ -0,0 +1,7 @@
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.