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
You can sneak a Block into a variable typed as a Whatever in Rakudo #1598
Comments
From @masak<moritz_> rakudo: my $x = *; say $x.WHAT |
From @jnthnOn Tue Mar 09 03:14:37 2010, masak wrote:
Now:
Still works as expected.
Given to moritz++ for test coverage of these. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/whatever.t commit 00c99647a074586660ac551d94a564fdd29c842a [t/spec] tests for RT #73460, Whatever stars and variables Inline Patchdiff --git a/t/spec/S02-builtin_data_types/whatever.t b/t/spec/S02-builtin_data_types/whatever.t
index 30d572a..94898d3 100644
--- a/t/spec/S02-builtin_data_types/whatever.t
+++ b/t/spec/S02-builtin_data_types/whatever.t
@@ -8,7 +8,12 @@ plan *;
{
my $x = *;
- ok($x.isa(Whatever), 'can assign * to a variable and isa works');
+ isa_ok $x, Whatever, 'can assign * to a variable and isa works';
+
+ my Whatever $y;
+ ok $y.WHAT === Whatever, 'can type variables with Whatever';
+
+ ok *.WHAT === Whatever, '*.WHAT does not autocurry';
}
# L<S02/Built-In Data Types/"Most of the built-in numeric operators"> |
Migrated from rt.perl.org#73460 (status was 'resolved')
Searchable as RT73460$
The text was updated successfully, but these errors were encountered: