// Tests treating a function like an array
// Should produce an error
// https://gitlab.com/camelot/kickc/issues/276

void main() {
    // Add a ball
    new_ball(0);
    new_ball[4];
}

const char[$10] BALLS;

void new_ball(char i) {
    BALLS[i]++;
}