solidity/test/libsolidity/syntaxTests/indexing/function_type.sol

8 lines
160 B
Solidity

contract C {
function f() public {
f[0];
}
}
// ----
// TypeError 2614: (41-42): Indexed expression has to be a type, mapping or array (is function ())