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

14 lines
249 B
Solidity
Raw Normal View History

2020-07-17 08:22:30 +00:00
contract D {
function f(uint a) external payable {}
function g(uint a) external {}
}
contract C {
function f() public {
D d;
[d.f{value: 1}, d.g][0](8);
}
}
// ----
// TypeError 9563: (155-168): Invalid mobile type.