mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Update tests/Parser.test.cpp
This commit is contained in:
parent
15d7810dee
commit
9ccf805aad
1 changed files with 1 additions and 0 deletions
|
@ -3187,6 +3187,7 @@ TEST_CASE_FIXTURE(Fixture, "mixed_leading_intersection_and_union_not_allowed")
|
||||||
ScopedFastFlag sff{FFlag::LuauLeadingBarAndAmpersand, true};
|
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.");
|
||||||
|
matchParseError("type A = | number & string & boolean", "Mixing union and intersection types is not allowed; consider wrapping in parentheses.");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_SUITE_END();
|
TEST_SUITE_END();
|
||||||
|
|
Loading…
Add table
Reference in a new issue