mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-13 15:20:53 +01:00
Re-using uncleared normalizer in unsafe
This commit is contained in:
parent
ee364a33b4
commit
1958676f29
1 changed files with 1 additions and 0 deletions
|
@ -408,6 +408,7 @@ struct NormalizeFixture : Fixture
|
||||||
|
|
||||||
const NormalizedType* toNormalizedType(const std::string& annotation)
|
const NormalizedType* toNormalizedType(const std::string& annotation)
|
||||||
{
|
{
|
||||||
|
normalizer.clearCaches();
|
||||||
CheckResult result = check("type _Res = " + annotation);
|
CheckResult result = check("type _Res = " + annotation);
|
||||||
LUAU_REQUIRE_NO_ERRORS(result);
|
LUAU_REQUIRE_NO_ERRORS(result);
|
||||||
std::optional<TypeId> ty = lookupType("_Res");
|
std::optional<TypeId> ty = lookupType("_Res");
|
||||||
|
|
Loading…
Add table
Reference in a new issue