From 45594a571dd2800f0833160d9be2678c73a4a521 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Fri, 20 Sep 2024 19:42:14 +0300 Subject: [PATCH] Fixed the issue --- tests/Autocomplete.test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Autocomplete.test.cpp b/tests/Autocomplete.test.cpp index 44482c68..82e5c252 100644 --- a/tests/Autocomplete.test.cpp +++ b/tests/Autocomplete.test.cpp @@ -3820,10 +3820,14 @@ TEST_CASE_FIXTURE(ACFixture, "autocomplete_response_perf1" * doctest::timeout(0. 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}; ScopedFastInt luauTypeInferRecursionLimit{FInt::LuauTypeInferRecursionLimit, 10}; - const int parts = 60; + const int parts = 100; std::string source; source += "function f()\n";