aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/length/cannot_be_function.sol
blob: 2ad97d27c9ba89c6b7d924edd5e653211d576a10 (plain) (blame)
1
2
3
4
5
6
contract C {
    function f() public {}
    uint[f] ids;
}
// ----
// TypeError: (49-50): Invalid array length, expected integer literal or constant expression.