mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8906 from ethereum/test-function-cast-value-set
Test for function with value setting
This commit is contained in:
commit
b014b89edc
@ -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.
|
Loading…
Reference in New Issue
Block a user