Re-using uncleared normalizer in unsafe

This commit is contained in:
Vyacheslav Egorov 2023-01-04 14:45:18 +02:00
parent ee364a33b4
commit 1958676f29

View File

@ -408,6 +408,7 @@ struct NormalizeFixture : Fixture
const NormalizedType* toNormalizedType(const std::string& annotation)
{
normalizer.clearCaches();
CheckResult result = check("type _Res = " + annotation);
LUAU_REQUIRE_NO_ERRORS(result);
std::optional<TypeId> ty = lookupType("_Res");