//@flow

// If the entire expression has an annot available then we should be able to push
// the annotation of the return type down to the return expression, even
// through for/in loops 
let a = ((x => {
  for (let x in ((x) => 3)) { // Only the body is covered, missing annot!
    const x = (y) => 3; // non-return, not covered!
    return y => 3; // Covered by the annot
  }
  return (y) => 3;
}) as number => number => number);

let b = ((x => {
  // Blocks are not necessary
  for (let z in null)
  return (y) => 3;

  return (y) => 3;
}) as number => number => number);
