From 3c40a117a9f535ae582b3aa6a7c79d69fe5304cd Mon Sep 17 00:00:00 2001 From: aaron Date: Tue, 5 Nov 2024 15:11:22 -0800 Subject: [PATCH] Set the defining module even when it cloned. --- Analysis/src/ConstraintSolver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Analysis/src/ConstraintSolver.cpp b/Analysis/src/ConstraintSolver.cpp index bcda4e23b..398f0aa58 100644 --- a/Analysis/src/ConstraintSolver.cpp +++ b/Analysis/src/ConstraintSolver.cpp @@ -1109,7 +1109,8 @@ bool ConstraintSolver::tryDispatch(const TypeAliasExpansionConstraint& c, NotNul target = follow(instantiated); } - else if (FFlag::LuauNewSolverPopulateTableLocations) + + if (FFlag::LuauNewSolverPopulateTableLocations) { // This is a new type - redefine the location. ttv->definitionLocation = constraint->location;