From 1ba3e5fd7bae39dc95d09c43ee5c167e3986bff3 Mon Sep 17 00:00:00 2001 From: Vighnesh Date: Fri, 14 Jun 2024 11:23:44 -0700 Subject: [PATCH] correct the flag name --- tests/Parser.test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Parser.test.cpp b/tests/Parser.test.cpp index 0e5f0dd0..fabb897f 100644 --- a/tests/Parser.test.cpp +++ b/tests/Parser.test.cpp @@ -3178,21 +3178,21 @@ TEST_CASE_FIXTURE(Fixture, "read_write_table_properties") TEST_CASE_FIXTURE(Fixture, "can_parse_leading_bar_unions_successfully") { - ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand, true}; + ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand2, true}; parse(R"(type A = | "Hello" | "World")"); } TEST_CASE_FIXTURE(Fixture, "can_parse_leading_ampersand_intersections_successfully") { - ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand, true}; + ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand2, true}; parse(R"(type A = & { string } & { number })"); } TEST_CASE_FIXTURE(Fixture, "mixed_leading_intersection_and_union_not_allowed") { - ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand, true}; + ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand2, true}; matchParseError("type A = & number | string | boolean", "Mixing union and intersection types is not allowed; consider wrapping in parentheses."); matchParseError("type A = | number & string & boolean", "Mixing union and intersection types is not allowed; consider wrapping in parentheses.");