In a discriminated parameter, where in the function body does a `const` modifier on the type parameter (vs. a normal one) change inference for an array argument?
declare function reg<const T extends readonly string[]>(events: T): T;
const r = reg(["open", "close"]);
// ^? type of r?