Skip to content

Commit

Permalink
Set the defining module even when the new solver cloned the type. (#1506
Browse files Browse the repository at this point in the history
)

Follow up to #1495: a small fixup for the defining module and location
to get set even when cloning was required.
  • Loading branch information
aatxe authored Nov 5, 2024
1 parent f1d4621 commit 47543e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Analysis/src/ConstraintSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47543e5

Please sign in to comment.