diff --git a/Ast/src/Parser.cpp b/Ast/src/Parser.cpp index 6b7dc854..b26cd993 100644 --- a/Ast/src/Parser.cpp +++ b/Ast/src/Parser.cpp @@ -26,7 +26,7 @@ LUAU_DYNAMIC_FASTFLAGVARIABLE(LuaReportParseIntegerIssues, false) LUAU_FASTFLAGVARIABLE(LuauAlwaysCaptureHotComments, false) -LUAU_FASTFLAGVARIABLE(LuauInterpolatedStringBaseSupport, true) +LUAU_FASTFLAGVARIABLE(LuauInterpolatedStringBaseSupport, false) bool lua_telemetry_parsed_out_of_range_bin_integer = false; bool lua_telemetry_parsed_out_of_range_hex_integer = false; diff --git a/tests/TypeInfer.test.cpp b/tests/TypeInfer.test.cpp index 712b0eba..0e169c81 100644 --- a/tests/TypeInfer.test.cpp +++ b/tests/TypeInfer.test.cpp @@ -8,6 +8,7 @@ #include "Luau/VisitTypeVar.h" #include "Fixture.h" +#include "ScopedFlags.h" #include "doctest.h" @@ -815,6 +816,8 @@ end TEST_CASE_FIXTURE(Fixture, "tc_interpolated_string_basic") { + ScopedFastFlag sff{"LuauInterpolatedStringBaseSupport", true}; + CheckResult result = check(R"( local foo: string = `hello {"world"}` )"); @@ -824,6 +827,8 @@ TEST_CASE_FIXTURE(Fixture, "tc_interpolated_string_basic") TEST_CASE_FIXTURE(Fixture, "tc_interpolated_string_with_invalid_expression") { + ScopedFastFlag sff{"LuauInterpolatedStringBaseSupport", true}; + CheckResult result = check(R"( local function f(x: number) end