// @flow
function foo(x: Array<number>): [number, ?number] {
return x; // Error, can't enforce arity when flowing array to tuple
}
return [x[0], x[1]]; // OK. This is unsound, but at least arity is enforced