solidity/test/libsolidity/syntaxTests/functionTypes/inline_array_with_bound_function_mixed.sol
2020-07-23 14:55:32 +02:00

14 lines
256 B
Solidity

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.