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
Can't assign to a variable that already contains a Whatever in Rakudo #2256
Comments
From @masak<masak> rakudo: my $a = *; $a = "foo"; say $a jnthn points out that this is how C<($x, *, $y) = 1, 2, 3> works, and |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in S02-builtin_data_types/whatever.t commit 84eeb91eda9ada8213f062282f85e04779764a5b [whatever.t] Test for RT 79166 Inline Patchdiff --git a/S02-builtin_data_types/whatever.t b/S02-builtin_data_types/whatever.t
index 4e1a45e..5ebdc31 100644
--- a/S02-builtin_data_types/whatever.t
+++ b/S02-builtin_data_types/whatever.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 71;
+plan 73;
# L<S02/Built-In Data Types/"The * character as a standalone term captures the notion of">
# L<S02/Native types/"If any native type is explicitly initialized to">
@@ -223,6 +223,15 @@ eval_lives_ok '{*.{}}()', '{*.{}}() lives';
dies_ok { &infix:<R+>(*, 42) }, '&infix:<+>(*, 42) doesn\'t make a closure';
}
+# RT 79166
+{
+ my $rt79166 = *;
+ isa_ok $rt79166, Whatever, 'assignment of whatever still works';
+ $rt79166 = 'RT 79166';
+ #?rakudo todo 'RT 79166'
+ is $rt79166, 'RT 79166', 'assignment to variable with whatever in it';
+}
+
done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzFixed in nom, test passes now. |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#79166 (status was 'resolved')
Searchable as RT79166$
The text was updated successfully, but these errors were encountered: