solidity/test/libsolidity/syntaxTests/functionTypes/call_value_on_non_payable_function_type.sol

9 lines
213 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
contract C {
function (uint) external returns (uint) x;
function f() public {
2020-04-03 14:29:17 +00:00
x{value: 2}(1);
2018-03-16 10:20:06 +00:00
}
}
2018-03-16 10:33:05 +00:00
// ----
2020-06-22 16:43:57 +00:00
// TypeError 7006: (94-105): Cannot set option "value" on a non-payable function type.