From 9ccf805aad7876450ce988b418e742b8f73a465d Mon Sep 17 00:00:00 2001 From: Alexander McCord <11488393+alexmccord@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:32:27 -0700 Subject: [PATCH] Update tests/Parser.test.cpp --- tests/Parser.test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Parser.test.cpp b/tests/Parser.test.cpp index bf707080..6b4bcf22 100644 --- a/tests/Parser.test.cpp +++ b/tests/Parser.test.cpp @@ -3187,6 +3187,7 @@ TEST_CASE_FIXTURE(Fixture, "mixed_leading_intersection_and_union_not_allowed") ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand, 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."); } TEST_SUITE_END();