New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R operator do not work properly with short form, like ~= #900
Comments
From @ilyabelikinHi there,
may be it should not work at all, but currently behaviour is strange. Ilya |
From @moritzOn Sat Apr 18 01:37:34 2009, ihrd wrote:
FYI, STD.pm says "Can't reverse a concatenation because it's too |
The RT System itself - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/assign.t commit 0d46a3f0651a2f1cf8c93390bbc9cbb5c59bd353 [t/spec] Test for RT #64818 Inline Patchdiff --git a/t/spec/S03-operators/assign.t b/t/spec/S03-operators/assign.t
index 3c98bee..c94ca4c 100644
--- a/t/spec/S03-operators/assign.t
+++ b/t/spec/S03-operators/assign.t
@@ -6,7 +6,7 @@ use Test;
# V
# L<S03/Changes to Perl 5 operators/list assignment operator now parses on the right>
-plan 238;
+plan 239;
# tests various assignment styles
@@ -319,6 +319,10 @@ my @p;
is(@p[1],'plugh', "~= operator parses as item assignment 2");
}
+# RT #64818
+eval_dies_ok q{my $foo = 'foo'; $foo R~= 'foo';},
+ 'R~= operator is a parse error';
+
{
my $x = "abc";
@p = $x x= 3, 4; |
From @kylehaOn today's Rakudo, this "R~=" thing does not parse (says "No applicable |
From @bbkrOn * build [12:00] <bbkr> rakudo: my $foo = "foo"; say $foo R~= "foo" |
From @moritzOn Mon Aug 02 03:02:42 2010, bbkr wrote:
This is correct behaviour; however 12:06 < moritz_> rakudo: my ($x, $y) = <a b>; $x R~= $y; say "$x $y" does not look good. |
From @diakopterOn Mon Aug 02 03:07:18 2010, moritz wrote:
works now. marking testneeded. 17:16 < diakopter> rakudo: my ($x, $y) = <a b>; $x R~= $y; say "$x $y" |
From @diakopterOn Tue May 29 15:44:21 2012, diakopter wrote:
fixed/added tests to matched expected behavior. it does in fact parse |
@diakopter - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#64818 (status was 'resolved')
Searchable as RT64818$
The text was updated successfully, but these errors were encountered: