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
Rat + 0.1 dies in Rakudo #1718
Comments
From @masak<sorear> rakudo: my Rat $a; $a += 0.1 for ^10 |
From @moritzThis has been working for quite some time, and is now also tested in rat.t. |
@moritz - Status changed from 'new' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit f9b04c54f7520839f8e42e4f2839377deb629c5d [t/spec] test for RT #74626 Inline Patchdiff --git a/t/spec/S32-num/rat.t b/t/spec/S32-num/rat.t
index 0917474..9fea51b 100644
--- a/t/spec/S32-num/rat.t
+++ b/t/spec/S32-num/rat.t
@@ -209,6 +209,12 @@ is (-42/0).Num, -Inf, "(-42/0).Num = -Inf";
ok Rat.new() == 0, 'Rat.new() is 0';
+{
+ my Rat $a;
+ $a += 0.1 for ^10;
+ ok $a == 1, 'can do += on variable initialized by type object';
+}
+
done_testing;
# vim: ft=perl6 |
Migrated from rt.perl.org#74626 (status was 'resolved')
Searchable as RT74626$
The text was updated successfully, but these errors were encountered: