// Expect error: { "messageId": "referencesOutside" }
import { component$, useTask$ } from '@qwik.dev/core';

export const HelloWorld = component$(() => {
  const getMethod = () => {
    return () => {};
  };
  const useMethod = getMethod();
  useTask$(() => {
    // eslint-disable-next-line no-console
    console.log(useMethod);
  });
  return <div></div>;
});
