function Component(props) {
const cond = props.cond;
const x = props.x;
let a;
if (cond) {
a = x;
} else {
a = [];
}
useFreeze(a); // should freeze, value *may* be mutable
useFreeze(a); // should be readonly
call(a); // should be readonly
return a;
}
function useFreeze(x) {}
function call(x) {}