/* should not generate diagnostics */
let Component = (props) => <ol><For each={props.data}>{d => <li>{d.text}</li>}</For></ol>;

let abc = x.map(y => y + z);

let Component = (props) => {
  let abc = x.map(y => y + z);
  return <div>Hello, world!</div>;
}