From 67b0cf8a8c966db6fa6bd1d99e3967d9957cc146 Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Mon, 10 Apr 2023 11:06:10 -0700 Subject: [PATCH] Comments from #1484 --- compiler/forget/src/Inference/InlineUseMemo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/forget/src/Inference/InlineUseMemo.ts b/compiler/forget/src/Inference/InlineUseMemo.ts index 28f45446a8..2e6b5b7e80 100644 --- a/compiler/forget/src/Inference/InlineUseMemo.ts +++ b/compiler/forget/src/Inference/InlineUseMemo.ts @@ -97,7 +97,7 @@ export function inlineUseMemo(fn: HIRFunction): void { if (body === undefined) { CompilerError.invariant( "Expected first argument to useMemo() to be a function expression", - fn.loc + lambda.loc ); } // We know this function is used for useMemo and can prune it later