Set the defining module even when the new solver cloned the type. (#1506)
Some checks are pending
benchmark / callgrind (map[branch:main name:luau-lang/benchmark-data], ubuntu-22.04) (push) Waiting to run
build / ${{matrix.os.name}} (map[name:macos version:macos-latest]) (push) Waiting to run
build / ${{matrix.os.name}} (map[name:macos-arm version:macos-14]) (push) Waiting to run
build / ${{matrix.os.name}} (map[name:ubuntu version:ubuntu-latest]) (push) Waiting to run
build / windows (Win32) (push) Waiting to run
build / windows (x64) (push) Waiting to run
build / coverage (push) Waiting to run
build / web (push) Waiting to run
release / ${{matrix.os.name}} (map[name:macos version:macos-latest]) (push) Waiting to run
release / ${{matrix.os.name}} (map[name:ubuntu version:ubuntu-20.04]) (push) Waiting to run
release / ${{matrix.os.name}} (map[name:windows version:windows-latest]) (push) Waiting to run
release / web (push) Waiting to run

Follow up to #1495: a small fixup for the defining module and location
to get set even when cloning was required.
This commit is contained in:
aaron 2024-11-05 15:25:38 -08:00 committed by GitHub
parent f1d4621d59
commit 47543e5df1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;