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

14 lines
256 B
Solidity
Raw Normal View History

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