1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-12 23:00:54 +01:00

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");