export function bar<T>(cond: T) {
  if (cond) {
    return 1;
  } else {
    return 2;
  }
}