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
Failure when defining infix:<+=> #1235
Comments
From vetinari@ankh-morp.org$ uname -a Same on i386, both debian "lenny" $ gdb --args ./perl6 -e 'multi sub infix:<+=> (Num $a, Num $b) { $a -= Program received signal SIGSEGV, Segmentation fault. |
From frioux@gmail.comNo longer segfaults, but still fails. Test added in SVN #28114. |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S06-operator-overloading/sub.t commit 34184fb3629630d8b8c0e2f0bb15b23652ea9dcd add test for RT68662 Inline Patchdiff --git a/t/spec/S06-operator-overloading/sub.t b/t/spec/S06-operator-overloading/sub.t
index 9ef6ee6..64657f9 100644
--- a/t/spec/S06-operator-overloading/sub.t
+++ b/t/spec/S06-operator-overloading/sub.t
@@ -103,7 +103,7 @@ Testing operator overloading subroutines
{
sub postfix:<W> ($wobble) { return "ANDANDAND$wobble"; };
- is("boop"W, "ANDANDANDboop",
+ is("boop"W, "ANDANDANDboop",
'postfix operator overloading for new operator');
}
@@ -294,4 +294,12 @@ Testing operator overloading subroutines
}
+#?rakudo skip 'RT #68662'
+{
+ multi sub infix:<+=> (Num $a, Num $b) { $a -= $b }
+ my $frew = 10;
+ $frew += 5;
+ is $frew, 15, 'infix redefinition of += works';
+}
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Sat Aug 29 13:45:42 2009, KyleHa wrote:
Actual test now reads: #?rakudo skip 'RT #68662' -- |
From @cokeTest was wrong, updated it with a hint from quester. Looks like it should be working now. Can't -- |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#68662 (status was 'resolved')
Searchable as RT68662$
The text was updated successfully, but these errors were encountered: