Merge pull request #8906 from ethereum/test-function-cast-value-set

Test for function with value setting
This commit is contained in:
chriseth 2020-05-12 13:23:26 +02:00 committed by GitHub
commit b014b89edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.