mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fixed not unfrezzing typechecker before loading definition files
This commit is contained in:
parent
7633ff83f0
commit
91a5c8a67c
1 changed files with 4 additions and 0 deletions
|
@ -645,6 +645,8 @@ ScopePtr Frontend::getModuleEnvironment(const SourceModule& module, const Config
|
|||
|
||||
if (!config.globalTypePaths.empty())
|
||||
{
|
||||
unfreeze(typeChecker.globalTypes);
|
||||
|
||||
result = std::make_shared<Scope>(result);
|
||||
for (const std::string& path : config.globalTypePaths)
|
||||
{
|
||||
|
@ -654,6 +656,8 @@ ScopePtr Frontend::getModuleEnvironment(const SourceModule& module, const Config
|
|||
|
||||
loadDefinitionFile(typeChecker, typeChecker.globalScope, source->source, path);
|
||||
}
|
||||
|
||||
freeze(typeChecker.globalTypes);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue