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

14 lines
269 B
Solidity
Raw Normal View History

2020-07-17 08:22:30 +00:00
library L {
function f(uint a) internal pure {}
function g(uint a) internal pure {}
}
contract C {
using L for *;
function f() pure public {
uint t = 8;
[t.f, t.g][0]();
}
}
// ----
// TypeError 9563: (186-189): Invalid mobile type.