From 1958676f2988324d5c996d23c1ed1106c5f58913 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 4 Jan 2023 14:45:18 +0200 Subject: [PATCH] Re-using uncleared normalizer in unsafe --- tests/Normalize.test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Normalize.test.cpp b/tests/Normalize.test.cpp index ba9f5c52..2ee82623 100644 --- a/tests/Normalize.test.cpp +++ b/tests/Normalize.test.cpp @@ -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 ty = lookupType("_Res");