mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 06:15:44 +08:00
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
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:
parent
f1d4621d59
commit
47543e5df1
@ -1109,7 +1109,8 @@ bool ConstraintSolver::tryDispatch(const TypeAliasExpansionConstraint& c, NotNul
|
|||||||
|
|
||||||
target = follow(instantiated);
|
target = follow(instantiated);
|
||||||
}
|
}
|
||||||
else if (FFlag::LuauNewSolverPopulateTableLocations)
|
|
||||||
|
if (FFlag::LuauNewSolverPopulateTableLocations)
|
||||||
{
|
{
|
||||||
// This is a new type - redefine the location.
|
// This is a new type - redefine the location.
|
||||||
ttv->definitionLocation = constraint->location;
|
ttv->definitionLocation = constraint->location;
|
||||||
|
Loading…
Reference in New Issue
Block a user