Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.bug-infer-mutation-aliasing-function-shadows-own-name.expect.md
2026-08-27 21:09:14 +00:00

465 B

Input

// @flow
function Foo() {
  function hasError() {
    let hasError = false;
    return hasError;
  }
  return <div x={hasError} />;
}

Error

Found 1 error:

Invariant: [InferMutationAliasingEffects] Expected value kind to be initialized

<unknown> hasError_0$8.

  5 |     return hasError;
  6 |   }
> 7 |   return <div x={hasError} />;
    |                  ^^^^^^^^ this is uninitialized
  8 | }
  9 |