aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/indexing/function_type.sol
blob: 6c6c06a937a50ae6828e51253f19b30517d3fe62 (plain) (blame)
1
2
3
4
5
6
7
contract C {
  function f() public {
    f[0];
  }
}
// ----
// TypeError: (41-42): Indexed expression has to be a type, mapping or array (is function ())