mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Re-using uncleared normalizer in unsafe
This commit is contained in:
parent
ee364a33b4
commit
1958676f29
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user