mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
430ba818d0
The regression itself was fixed in I980aec3481a52ecc35f1811a366014a5581a7cdb, so this patch only adds a test for it. Also remove a comment about CachingParser failures: we don't want to encourage people to remove it from tests anymore. Bug: T152281 Change-Id: I3ad49050ea49bf45d3226878e091da3c8dbefdb1
29 lines
291 B
Raku
29 lines
291 B
Raku
/* For T152281 */
|
|
v1 := 0; v2 := 0;
|
|
if ( 1 == 1 ) then
|
|
(
|
|
v1 := 1; v2 := 1;
|
|
)
|
|
else
|
|
(
|
|
v1 := 2; v2 := 2;
|
|
)
|
|
end;
|
|
|
|
if ( 1 == 1 ) then
|
|
( v1 := 1; )
|
|
else
|
|
(
|
|
v1 := 2; v2 := 2;
|
|
)
|
|
end;
|
|
|
|
if ( 1 == 1 ) then
|
|
( v1 := 2 === 2 ? 1 : 3; )
|
|
else
|
|
(
|
|
v1 := 'x' === 'y' ? 2 : 3;
|
|
v2 := v1 ** 2;
|
|
)
|
|
end;
|