Fixed the issue

This commit is contained in:
Vyacheslav Egorov 2024-09-20 19:42:14 +03:00
parent 48f3c85cba
commit 45594a571d

View file

@ -3820,10 +3820,14 @@ TEST_CASE_FIXTURE(ACFixture, "autocomplete_response_perf1" * doctest::timeout(0.
TEST_CASE_FIXTURE(ACFixture, "autocomplete_subtyping_recursion_limit") TEST_CASE_FIXTURE(ACFixture, "autocomplete_subtyping_recursion_limit")
{ {
// TODO: in old solver, type resolve can't handle the type in this test without a stack overflow
if (!FFlag::LuauSolverV2)
return;
ScopedFastFlag luauAutocompleteNewSolverLimit{FFlag::LuauAutocompleteNewSolverLimit, true}; ScopedFastFlag luauAutocompleteNewSolverLimit{FFlag::LuauAutocompleteNewSolverLimit, true};
ScopedFastInt luauTypeInferRecursionLimit{FInt::LuauTypeInferRecursionLimit, 10}; ScopedFastInt luauTypeInferRecursionLimit{FInt::LuauTypeInferRecursionLimit, 10};
const int parts = 60; const int parts = 100;
std::string source; std::string source;
source += "function f()\n"; source += "function f()\n";